mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-29 10:20:08 +01:00
Xext: fix test on extension number for the swapped case.
Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr>
Reviewed-by: Julien Cristau <jcristau@debian.org>
(cherry picked from commit 552c78592c)
This commit is contained in:
parent
e08a7df54d
commit
2f12adb2c9
1 changed files with 1 additions and 1 deletions
|
|
@ -185,7 +185,7 @@ SGEGenericEvent(xEvent* from, xEvent* to)
|
|||
xGenericEvent* gefrom = (xGenericEvent*)from;
|
||||
xGenericEvent* geto = (xGenericEvent*)to;
|
||||
|
||||
if (gefrom->extension > MAXEXTENSIONS)
|
||||
if ((gefrom->extension & 0x7f) > MAXEXTENSIONS)
|
||||
{
|
||||
ErrorF("GE: Invalid extension offset for event.\n");
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue