fix off-by-one array bound in strsignal
This commit is contained in:
1 parent
b6218764eb
commit
8599822ee1
1 file changed
+1
-1
@@ -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