mirror of
https://github.com/fluencelabs/musl
synced 2025-06-12 22:41:37 +00:00
fix off-by-one array bound in strsignal
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user