Sat Jun 9 15:37:57 2018 UTC ()
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>


(martin)
diff -r1.9 -r1.9.24.1 src/external/bsd/top/dist/top.c

cvs diff -r1.9 -r1.9.24.1 src/external/bsd/top/dist/top.c (expand / switch to context diff)
--- src/external/bsd/top/dist/top.c 2012/03/23 14:46:05 1.9
+++ src/external/bsd/top/dist/top.c 2018/06/09 15:37:57 1.9.24.1
@@ -135,6 +135,7 @@
 #ifdef HAVE_SIGACTION
     struct sigaction action;
 
+    sigemptyset(&action.sa_mask);
     action.sa_handler = handler;
     action.sa_flags = 0;
     (void) sigaction(sig, &action, NULL);