diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2014-12-09 17:58:54 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2014-12-09 17:58:54 +0000 |
commit | a585be1a395b9a0636f34b828859cd8031741633 (patch) | |
tree | b6a2594689d1bd1cb681cc19917563b4316e6d0a /xserver/randr | |
parent | 41d594947842df4658fc39cfc15d2c3514548cbe (diff) |
Protocol handling issues in X Window System servers
One year after Ilja van Sprundel, discovered and reported a large number
of issues in the way the X server code base handles requests from X clients,
they have been fixed.
Diffstat (limited to 'xserver/randr')
-rw-r--r-- | xserver/randr/rrsdispatch.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xserver/randr/rrsdispatch.c b/xserver/randr/rrsdispatch.c index 08c3b6abe..47558cf75 100644 --- a/xserver/randr/rrsdispatch.c +++ b/xserver/randr/rrsdispatch.c @@ -27,6 +27,7 @@ SProcRRQueryVersion(ClientPtr client) { REQUEST(xRRQueryVersionReq); + REQUEST_SIZE_MATCH(xRRQueryVersionReq); swaps(&stuff->length); swapl(&stuff->majorVersion); swapl(&stuff->minorVersion); @@ -38,6 +39,7 @@ SProcRRGetScreenInfo(ClientPtr client) { REQUEST(xRRGetScreenInfoReq); + REQUEST_SIZE_MATCH(xRRGetScreenInfoReq); swaps(&stuff->length); swapl(&stuff->window); return (*ProcRandrVector[stuff->randrReqType]) (client); @@ -69,6 +71,7 @@ SProcRRSelectInput(ClientPtr client) { REQUEST(xRRSelectInputReq); + REQUEST_SIZE_MATCH(xRRSelectInputReq); swaps(&stuff->length); swapl(&stuff->window); swaps(&stuff->enable); @@ -152,6 +155,7 @@ SProcRRConfigureOutputProperty(ClientPtr client) { REQUEST(xRRConfigureOutputPropertyReq); + REQUEST_AT_LEAST_SIZE(xRRConfigureOutputPropertyReq); swaps(&stuff->length); swapl(&stuff->output); swapl(&stuff->property); |