summaryrefslogtreecommitdiff
path: root/xserver/Xi/xisetdevfocus.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2014-12-09 17:58:54 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2014-12-09 17:58:54 +0000
commita585be1a395b9a0636f34b828859cd8031741633 (patch)
treeb6a2594689d1bd1cb681cc19917563b4316e6d0a /xserver/Xi/xisetdevfocus.c
parent41d594947842df4658fc39cfc15d2c3514548cbe (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/Xi/xisetdevfocus.c')
-rw-r--r--xserver/Xi/xisetdevfocus.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xserver/Xi/xisetdevfocus.c b/xserver/Xi/xisetdevfocus.c
index 372ec248a..96a9a16e4 100644
--- a/xserver/Xi/xisetdevfocus.c
+++ b/xserver/Xi/xisetdevfocus.c
@@ -44,6 +44,8 @@ int
SProcXISetFocus(ClientPtr client)
{
REQUEST(xXISetFocusReq);
+ REQUEST_AT_LEAST_SIZE(xXISetFocusReq);
+
swaps(&stuff->length);
swaps(&stuff->deviceid);
swapl(&stuff->focus);
@@ -56,6 +58,8 @@ int
SProcXIGetFocus(ClientPtr client)
{
REQUEST(xXIGetFocusReq);
+ REQUEST_AT_LEAST_SIZE(xXIGetFocusReq);
+
swaps(&stuff->length);
swaps(&stuff->deviceid);