| commit | 754ce881453ee3b6c6a93bbdaef7c645f43d49f6 | [log] [tgz] |
|---|---|---|
| author | Petr Machata <pmachata@redhat.com> | Tue Jan 08 23:41:47 2013 +0100 |
| committer | Petr Machata <pmachata@redhat.com> | Fri Mar 08 22:55:33 2013 +0100 |
| tree | 6f90ac2c0d4f412b8e986feb5a875be053d83103 | |
| parent | d435b43c338a692531af0fe3df29cb968a863403 [diff] [blame] |
GNU/Linux backend: guard writing through task_info pointer against NULL
diff --git a/sysdeps/linux-gnu/trace.c b/sysdeps/linux-gnu/trace.c index 4a9be5d..2d948e3 100644 --- a/sysdeps/linux-gnu/trace.c +++ b/sysdeps/linux-gnu/trace.c
@@ -737,7 +737,8 @@ if (event != NULL && event->type == EVENT_SYSRET) { debug(1, "%d LT_EV_SYSRET", event->proc->pid); event_to_queue = 0; - task_info->sysret = 1; + if (task_info != NULL) + task_info->sysret = 1; } switch (state) {