From 022cda9599ee27702405ea7c7065665878c7834c Mon Sep 17 00:00:00 2001 From: Qualys Security Advisory Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] 0107-top: Initialize struct sigaction in before(). --- top/top.c | 1 + 1 file changed, 1 insertion(+) diff --git a/top/top.c b/top/top.c index 60613ca9..eefa6358 100644 --- a/top/top.c +++ b/top/top.c @@ -3112,6 +3112,7 @@ static void before (char *me) { #define SIGRTMAX 32 #endif // lastly, establish a robust signals environment + memset(&sa, 0, sizeof(sa)); sigemptyset(&sa.sa_mask); // with user position preserved through SIGWINCH, we must avoid SA_RESTART sa.sa_flags = 0;