From a585be1a395b9a0636f34b828859cd8031741633 Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Tue, 9 Dec 2014 17:58:54 +0000 Subject: 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. --- xserver/Xi/xisetdevfocus.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xserver/Xi/xisetdevfocus.c') 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); -- cgit v1.2.3