mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-08 05:38:03 +02:00
xfree86: don't let DGA steal key events outside of [9,255].
This commit is contained in:
parent
56a24cf894
commit
036d424827
1 changed files with 3 additions and 0 deletions
|
|
@ -922,6 +922,9 @@ DGAStealKeyEvent(DeviceIntPtr dev, int index, int key_code, int is_down)
|
|||
if(DGAScreenKey == NULL) /* no DGA */
|
||||
return FALSE;
|
||||
|
||||
if (key_code < 8 || key_code > 255)
|
||||
return FALSE;
|
||||
|
||||
pScreenPriv = DGA_GET_SCREEN_PRIV(screenInfo.screens[index]);
|
||||
|
||||
if(!pScreenPriv || !pScreenPriv->grabKeyboard) /* no direct mode */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue