summaryrefslogtreecommitdiff
path: root/src/signal/sigismember.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/signal/sigismember.c')
-rw-r--r--src/signal/sigismember.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/signal/sigismember.c b/src/signal/sigismember.c
index afd29e52..d3de6efb 100644
--- a/src/signal/sigismember.c
+++ b/src/signal/sigismember.c
@@ -4,7 +4,7 @@
int sigismember(const 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;
}