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>diff -r1.9 -r1.9.24.1 src/external/bsd/top/dist/top.c
(martin)
--- 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);