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

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