mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[coverity] 1543235 Out-of-bounds access
This commit is contained in:
@@ -195,7 +195,7 @@ void xf_keyboard_key_release(xfContext* xfc, const XKeyEvent* event, KeySym keys
|
||||
{
|
||||
WINPR_ASSERT(xfc);
|
||||
WINPR_ASSERT(event);
|
||||
WINPR_ASSERT(event->keycode <= ARRAYSIZE(xfc->KeyboardState));
|
||||
WINPR_ASSERT(event->keycode < ARRAYSIZE(xfc->KeyboardState));
|
||||
|
||||
BOOL last = xfc->KeyboardState[event->keycode];
|
||||
xfc->KeyboardState[event->keycode] = FALSE;
|
||||
|
||||
Reference in New Issue
Block a user