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

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