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

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