Coverity #487: Check version number correctly.
This commit is contained in:
parent
72cc630725
commit
152090ce44
|
@ -15,6 +15,9 @@
|
||||||
* damageext/damageext.c:
|
* damageext/damageext.c:
|
||||||
Coverity #491: Check version number correctly.
|
Coverity #491: Check version number correctly.
|
||||||
|
|
||||||
|
* xfixes/xfixes.c:
|
||||||
|
Coverity #487: Check version number correctly.
|
||||||
|
|
||||||
2006-03-15 Benjamin Herrenschmidt <benh@kernel.crashing.org>
|
2006-03-15 Benjamin Herrenschmidt <benh@kernel.crashing.org>
|
||||||
|
|
||||||
* hw/xfree86/dri/dri.c: (DRIExtensionInit):
|
* hw/xfree86/dri/dri.c: (DRIExtensionInit):
|
||||||
|
|
|
@ -143,7 +143,7 @@ ProcXFixesDispatch (ClientPtr client)
|
||||||
REQUEST(xXFixesReq);
|
REQUEST(xXFixesReq);
|
||||||
XFixesClientPtr pXFixesClient = GetXFixesClient (client);
|
XFixesClientPtr pXFixesClient = GetXFixesClient (client);
|
||||||
|
|
||||||
if (pXFixesClient->major_version > NUM_VERSION_REQUESTS)
|
if (pXFixesClient->major_version >= NUM_VERSION_REQUESTS)
|
||||||
return BadRequest;
|
return BadRequest;
|
||||||
if (stuff->xfixesReqType > version_requests[pXFixesClient->major_version])
|
if (stuff->xfixesReqType > version_requests[pXFixesClient->major_version])
|
||||||
return BadRequest;
|
return BadRequest;
|
||||||
|
|
Loading…
Reference in New Issue