diff options
Diffstat (limited to 'src/signal/sigaddset.c')
-rw-r--r-- | src/signal/sigaddset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/signal/sigaddset.c b/src/signal/sigaddset.c index 23e655db..d632c6fb 100644 --- a/src/signal/sigaddset.c +++ b/src/signal/sigaddset.c @@ -4,7 +4,7 @@ int sigaddset(sigset_t *set, int sig) { unsigned s = sig-1; - if (s >= 8*sizeof(sigset_t)) { + if (s >= 8*sizeof(sigset_t) || s-32U<3) { errno = EINVAL; return -1; } |