From 79250ad1e2b76f2ba5aa8d6dc0134c6c07ceac3a Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Thu, 11 Nov 2021 09:03:17 +0000 Subject: Update to xserver 21.1.0 --- xserver/Xext/geext.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'xserver/Xext/geext.c') diff --git a/xserver/Xext/geext.c b/xserver/Xext/geext.c index 5009c081a..05988c41a 100644 --- a/xserver/Xext/geext.c +++ b/xserver/Xext/geext.c @@ -138,9 +138,15 @@ ProcGEDispatch(ClientPtr client) static int _X_COLD SProcGEDispatch(ClientPtr client) { + GEClientInfoPtr pGEClient = GEGetClient(client); + REQUEST(xGEReq); - if (stuff->ReqType >= GENumberRequests) + + if (pGEClient->major_version >= ARRAY_SIZE(version_requests)) return BadRequest; + if (stuff->ReqType > version_requests[pGEClient->major_version]) + return BadRequest; + return (*SProcGEVector[stuff->ReqType]) (client); } -- cgit v1.2.3