fix off-by-one array bound in strsignal
This commit is contained in:
parent
b6218764eb
commit
8599822ee1
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue