diff options
Diffstat (limited to 'patches/source/xorg-server-xwayland/CVE-2022-46340.correction.patch')
-rw-r--r-- | patches/source/xorg-server-xwayland/CVE-2022-46340.correction.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/patches/source/xorg-server-xwayland/CVE-2022-46340.correction.patch b/patches/source/xorg-server-xwayland/CVE-2022-46340.correction.patch new file mode 100644 index 000000000..ad31c7916 --- /dev/null +++ b/patches/source/xorg-server-xwayland/CVE-2022-46340.correction.patch @@ -0,0 +1,12 @@ +diff -u -r --new-file xorg-server-21.1.5/Xext/xtest.c xorg-server-21.1.6/Xext/xtest.c +--- xorg-server-21.1.5/Xext/xtest.c 2022-12-13 20:25:18.000000000 -0600 ++++ xorg-server-21.1.6/Xext/xtest.c 2022-12-19 04:53:03.000000000 -0600 +@@ -502,7 +502,7 @@ + + nev = ((req->length << 2) - sizeof(xReq)) / sizeof(xEvent); + for (ev = (xEvent *) &req[1]; --nev >= 0; ev++) { +- int evtype = ev->u.u.type & 0x177; ++ int evtype = ev->u.u.type & 0177; + /* Swap event */ + proc = EventSwapVector[evtype]; + /* no swapping proc; invalid event type? */ |