[coverity] 1543235 Out-of-bounds access

This commit is contained in:
akallabeth
2024-04-11 10:45:01 +02:00
committed by akallabeth
parent 3997eeb5b3
commit 61e0d122b7

View File

@@ -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;