From eb0bf83fc07383a99435d384af0d6a21f2879678 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 11 May 2012 11:00:07 -0400 Subject: [PATCH] The pointer to the siginfo_t struct in a signal handler may be NULL. --HG-- branch : 1.7 --- exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.40.0