Module Name: src
Committed By: martin
Date: Sat Jun 9 15:37:57 UTC 2018
Modified Files:
src/external/bsd/top/dist [netbsd-8]: top.c
Log Message:
Pull up following revision(s) (requested by kamil in ticket #871):
external/bsd/top/dist/top.c: revision 1.10
Fix unitialized signal mask passed to sigaction(2) in top(1)
Detected with Memory Sanitizer during the integration of sanitizers with
the NetBSD basesystem.
Reported by <Yang Zheng>
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.9.24.1 src/external/bsd/top/dist/top.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/top/dist/top.c
diff -u src/external/bsd/top/dist/top.c:1.9 src/external/bsd/top/dist/top.c:1.9.24.1
--- src/external/bsd/top/dist/top.c:1.9 Fri Mar 23 14:46:05 2012
+++ src/external/bsd/top/dist/top.c Sat Jun 9 15:37:57 2018
@@ -135,6 +135,7 @@ set_signal(int sig, RETSIGTYPE (*handler
#ifdef HAVE_SIGACTION
struct sigaction action;
+ sigemptyset(&action.sa_mask);
action.sa_handler = handler;
action.sa_flags = 0;
(void) sigaction(sig, &action, NULL);