From 6545e05462f29bcb3bdc94d5b9bf7f4347f2e30b Mon Sep 17 00:00:00 2001 From: Mark Date: Mon, 30 Dec 2019 01:24:07 +0200 Subject: [PATCH] Fix undefined behavior in thread struct initialization --- sys/amd64/sys/thread.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/amd64/sys/thread.c b/sys/amd64/sys/thread.c index 2dfe474..69ad168 100644 --- a/sys/amd64/sys/thread.c +++ b/sys/amd64/sys/thread.c @@ -121,6 +121,7 @@ int thread_init( t->space = space; t->flags = flags; t->next = NULL; + t->sigqsz = 0; memset(&t->ioctx, 0, sizeof(t->ioctx)); memset(t->fds, 0, sizeof(t->fds));