mirror of
https://github.com/fluencelabs/musl
synced 2025-06-23 19:52:01 +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
|
[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
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user