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

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