diff options
author | Rich Felker <dalias@aerifal.cx> | 2013-07-09 02:11:52 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2013-07-09 02:11:52 -0400 |
commit | 8599822ee1d70a1e42e1d4b4962bc1d0bdf7e5ab (patch) | |
tree | 9672d93dd6d643f8c665890dd7a4b0cd8f7dd045 /src | |
parent | b6218764ebca59ff5dae0e87b696188c8de0119e (diff) | |
download | musl-8599822ee1d70a1e42e1d4b4962bc1d0bdf7e5ab.tar.gz musl-8599822ee1d70a1e42e1d4b4962bc1d0bdf7e5ab.tar.bz2 musl-8599822ee1d70a1e42e1d4b4962bc1d0bdf7e5ab.tar.xz musl-8599822ee1d70a1e42e1d4b4962bc1d0bdf7e5ab.zip |
fix off-by-one array bound in strsignal
Diffstat (limited to 'src')
-rw-r--r-- | src/string/strsignal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string/strsignal.c b/src/string/strsignal.c index 3b0ae6d7..d70982aa 100644 --- a/src/string/strsignal.c +++ b/src/string/strsignal.c @@ -48,7 +48,7 @@ static const char map[] = { [SIGSYS] = 31 }; -#define sigmap(x) ((unsigned)(x) > sizeof map ? 0 : map[(unsigned)(x)]) +#define sigmap(x) ((unsigned)(x) >= sizeof map ? 0 : map[(unsigned)(x)]) #endif |