about summary refs log tree commit diff
path: root/src/signal/sigdelset.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/signal/sigdelset.c')
-rw-r--r--src/signal/sigdelset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/signal/sigdelset.c b/src/signal/sigdelset.c
index 14042fb8..f8794ad6 100644
--- a/src/signal/sigdelset.c
+++ b/src/signal/sigdelset.c
@@ -4,7 +4,7 @@
 int sigdelset(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;
 	}