mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 10:14:52 +00:00
[PR #796] xkb: ProcXkbGetKbdByName(): extra payload size sanity check
PR: https://github.com/X11Libre/xserver/pull/796
This commit is contained in:
@@ -6090,6 +6090,10 @@ ProcXkbGetKbdByName(ClientPtr client)
|
||||
|
||||
XkbAssembleGeometry(client, new->geom, grep, &childbuf);
|
||||
|
||||
if (childbuf.wpos != (grep.length * 4))
|
||||
LogMessage(X_WARNING, "ProcXkbGetKbdByName() childbuf size (%ld) mismatch nrep size (%ld // %d units)\n",
|
||||
(unsigned long)childbuf.wpos, (unsigned long)grep.length * 4, grep.length);
|
||||
|
||||
if (client->swapped) {
|
||||
swaps(&grep.sequenceNumber);
|
||||
swapl(&grep.length);
|
||||
|
||||
Reference in New Issue
Block a user