From: Todd C. Miller Date: Fri, 11 May 2012 15:00:07 +0000 (-0400) Subject: The pointer to the siginfo_t struct in a signal handler may be NULL. X-Git-Tag: SUDO_1_7_9p1~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb0bf83fc07383a99435d384af0d6a21f2879678;p=sudo The pointer to the siginfo_t struct in a signal handler may be NULL. --HG-- branch : 1.7 --- diff --git a/exec.c b/exec.c index 965f89d75..9d9572a44 100644 --- a/exec.c +++ b/exec.c @@ -661,7 +661,7 @@ handler_nofwd(s, info, context) unsigned char signo = (unsigned char)s; /* Only forward user-generated signals. */ - if (info->si_code <= 0) { + if (info == NULL || info->si_code <= 0) { /* * The pipe is non-blocking, if we overflow the kernel's pipe * buffer we drop the signal. This is not a problem in practice.