mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
Coverity #487: Check version number correctly.
This commit is contained in:
@@ -15,6 +15,9 @@
|
||||
* damageext/damageext.c:
|
||||
Coverity #491: Check version number correctly.
|
||||
|
||||
* xfixes/xfixes.c:
|
||||
Coverity #487: Check version number correctly.
|
||||
|
||||
2006-03-15 Benjamin Herrenschmidt <benh@kernel.crashing.org>
|
||||
|
||||
* hw/xfree86/dri/dri.c: (DRIExtensionInit):
|
||||
|
||||
@@ -143,7 +143,7 @@ ProcXFixesDispatch (ClientPtr client)
|
||||
REQUEST(xXFixesReq);
|
||||
XFixesClientPtr pXFixesClient = GetXFixesClient (client);
|
||||
|
||||
if (pXFixesClient->major_version > NUM_VERSION_REQUESTS)
|
||||
if (pXFixesClient->major_version >= NUM_VERSION_REQUESTS)
|
||||
return BadRequest;
|
||||
if (stuff->xfixesReqType > version_requests[pXFixesClient->major_version])
|
||||
return BadRequest;
|
||||
|
||||
Reference in New Issue
Block a user