/[packages]/updates/8/x11-server/current/SOURCES/0008-Xext-fix-invalid-event-type-mask-in-XTestSwapFakeInp.patch
ViewVC logotype

Contents of /updates/8/x11-server/current/SOURCES/0008-Xext-fix-invalid-event-type-mask-in-XTestSwapFakeInp.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1932107 - (show annotations) (download)
Tue Jan 10 14:26:35 2023 UTC (15 months, 1 week ago) by ns80
File size: 1121 byte(s)
- add patches from Fedora for CVE-2022-4634[0-4] and CVE-2022-4283 (mga#31281)

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

  ViewVC Help
Powered by ViewVC 1.1.30