Skip to content

Instantly share code, notes, and snippets.

@agentzh
Last active May 6, 2020 23:48
Show Gist options
  • Save agentzh/dace745192fa8752aa3ac489bb7f7a13 to your computer and use it in GitHub Desktop.
Save agentzh/dace745192fa8752aa3ac489bb7f7a13 to your computer and use it in GitHub Desktop.
diff --git a/runtime/vma.c b/runtime/vma.c
index e6a0de7ef..c4b706254 100644
--- a/runtime/vma.c
+++ b/runtime/vma.c
@@ -38,7 +38,8 @@ static void _stp_vma_match_vdso(struct task_struct *tsk)
for (i = 0; i < _stp_num_modules && found == NULL; i++) {
struct _stp_module *m = _stp_modules[i];
- if (m->path[0] == '/'
+ if (m->path
+ && m->path[0] == '/'
&& m->num_sections == 1)
{
unsigned long notes_addr;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment