From: James Y Knight Date: Thu, 11 Jul 2019 15:48:08 +0000 (-0400) Subject: fix sigaltstack to ignore ss_size with SS_DISABLE, per POSIX X-Git-Tag: v1.1.23~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7829f42a2c8944555439380498ab8b924d0f2070;p=oweals%2Fmusl.git fix sigaltstack to ignore ss_size with SS_DISABLE, per POSIX --- diff --git a/src/signal/sigaltstack.c b/src/signal/sigaltstack.c index cfa3f5c1..d3a6e821 100644 --- a/src/signal/sigaltstack.c +++ b/src/signal/sigaltstack.c @@ -5,7 +5,7 @@ int sigaltstack(const stack_t *restrict ss, stack_t *restrict old) { if (ss) { - if (ss->ss_size < MINSIGSTKSZ) { + if (!(ss->ss_flags & SS_DISABLE) && ss->ss_size < MINSIGSTKSZ) { errno = ENOMEM; return -1; }