mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-20 02:08:13 +00:00
qnx: fixed potential buffer overflow.
This commit is contained in:
@@ -107,7 +107,7 @@ handleKeyboardEvent(screen_event_t event)
|
||||
}
|
||||
|
||||
// Skip unrecognized keys.
|
||||
if ((val < 0) || (val > (sizeof(key_to_sdl) / sizeof(int)))) {
|
||||
if ((val < 0) || (val >= SDL_TABLESIZE(key_to_sdl))) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user