mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
fix libc-internal signal blocking on mips archs
due to historical reasons, the mips signal set has 128 bits rather
than 64 like on every other arch. this was special-cased correctly, at
least for 32-bit mips, at one time, but was inadvertently broken in
commit 7c440977db
, and seems never to
have been right on mips64/n32.
as consequenct of this bug, applications making use of high realtime
signal numbers on mips may have been able to execute application code
in contexts where doing so was unsafe.
This commit is contained in:
parent
0fbd7d6683
commit
3f701faace
1 changed files with 2 additions and 2 deletions
|
@ -3,9 +3,9 @@
|
|||
#include <signal.h>
|
||||
|
||||
static const unsigned long all_mask[] = {
|
||||
#if ULONG_MAX == 0xffffffff && _NSIG == 129
|
||||
#if ULONG_MAX == 0xffffffff && _NSIG > 65
|
||||
-1UL, -1UL, -1UL, -1UL
|
||||
#elif ULONG_MAX == 0xffffffff
|
||||
#elif ULONG_MAX == 0xffffffff || _NSIG > 65
|
||||
-1UL, -1UL
|
||||
#else
|
||||
-1UL
|
||||
|
|
Loading…
Add table
Reference in a new issue