mirror of
https://github.com/openbsd/xenocara.git
synced 2025-12-16 22:29:21 +00:00
Xext: Fix out of bounds access in SProcScreenSaverSuspend()
ZDI-CAN-14951, CVE-2021-4010
This commit is contained in:
@@ -1350,9 +1350,9 @@ SProcScreenSaverSuspend(ClientPtr client)
|
|||||||
{
|
{
|
||||||
REQUEST(xScreenSaverSuspendReq);
|
REQUEST(xScreenSaverSuspendReq);
|
||||||
|
|
||||||
|
REQUEST_SIZE_MATCH(xScreenSaverSuspendReq);
|
||||||
swaps(&stuff->length);
|
swaps(&stuff->length);
|
||||||
swapl(&stuff->suspend);
|
swapl(&stuff->suspend);
|
||||||
REQUEST_SIZE_MATCH(xScreenSaverSuspendReq);
|
|
||||||
return ProcScreenSaverSuspend(client);
|
return ProcScreenSaverSuspend(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user