Blame SOURCES/0008-Xext-fix-invalid-event-type-mask-in-XTestSwapFakeInp.patch

290b8e
From bb1711b7fba42f2a0c7d1c09beee241a1b2bcc30 Mon Sep 17 00:00:00 2001
290b8e
From: Peter Hutterer <peter.hutterer@who-t.net>
290b8e
Date: Mon, 19 Dec 2022 10:06:45 +1000
290b8e
Subject: [PATCH xserver] Xext: fix invalid event type mask in
290b8e
 XTestSwapFakeInput
290b8e
290b8e
In commit b320ca0 the mask was inadvertently changed from octal 0177 to
290b8e
hexadecimal 0x177.
290b8e
290b8e
Fixes commit b320ca0ffe4c0c872eeb3a93d9bde21f765c7c63
290b8e
  Xtest: disallow GenericEvents in XTestSwapFakeInput
290b8e
290b8e
Found by Stuart Cassoff
290b8e
290b8e
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
290b8e
---
290b8e
 Xext/xtest.c | 2 +-
290b8e
 1 file changed, 1 insertion(+), 1 deletion(-)
290b8e
290b8e
diff --git a/Xext/xtest.c b/Xext/xtest.c
290b8e
index 2985a4ce6e..dde5c4cf9d 100644
290b8e
--- a/Xext/xtest.c
290b8e
+++ b/Xext/xtest.c
290b8e
@@ -502,7 +502,7 @@ XTestSwapFakeInput(ClientPtr client, xReq * req)
290b8e
 
290b8e
     nev = ((req->length << 2) - sizeof(xReq)) / sizeof(xEvent);
290b8e
     for (ev = (xEvent *) &req[1]; --nev >= 0; ev++) {
290b8e
-        int evtype = ev->u.u.type & 0x177;
290b8e
+        int evtype = ev->u.u.type & 0177;
290b8e
         /* Swap event */
290b8e
         proc = EventSwapVector[evtype];
290b8e
         /* no swapping proc; invalid event type? */
290b8e
-- 
290b8e
2.38.1
290b8e