mirror of git://git.musl-libc.org/musl
fix off-by-one array bound in strsignal
This commit is contained in:
parent
b6218764eb
commit
8599822ee1
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue