diff options
author | Rich Felker <dalias@aerifal.cx> | 2013-07-18 19:21:06 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2013-07-18 19:21:06 -0400 |
commit | 23815f88df6c45247f3755dc7857f4013264c04f (patch) | |
tree | 1171b3998d93e8e5c745c979d8708f44138168ea /src/signal/sigaddset.c | |
parent | b823ef2db13a5d86df03bcf6bfd4b92559c0b154 (diff) | |
download | musl-23815f88df6c45247f3755dc7857f4013264c04f.tar.gz musl-23815f88df6c45247f3755dc7857f4013264c04f.tar.bz2 musl-23815f88df6c45247f3755dc7857f4013264c04f.tar.xz musl-23815f88df6c45247f3755dc7857f4013264c04f.zip |
fix off-by-one error in checks for implementation-internal signal numbers
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 d632c6fb..edb48d1c 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) || s-32U<3) { + if (s >= 8*sizeof(sigset_t) || sig-32U<3) { errno = EINVAL; return -1; } |