mirror of
https://github.com/fluencelabs/musl
synced 2025-06-28 22:22:01 +00:00
fix off-by-one error in checks for implementation-internal signal numbers
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
int sigaddset(sigset_t *set, int sig)
|
||||
{
|
||||
unsigned s = sig-1;
|
||||
if (s >= 8*sizeof(sigset_t) || s-32U<3) {
|
||||
if (s >= 8*sizeof(sigset_t) || sig-32U<3) {
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user