Coverity #491: Check version number correctly.
This commit is contained in:
parent
460f2ea4a5
commit
72cc630725
|
@ -12,6 +12,9 @@
|
|||
* hw/xfree86/loader/loader.c:
|
||||
Coverity #484: Fix an off-by-one in module refcounting.
|
||||
|
||||
* damageext/damageext.c:
|
||||
Coverity #491: Check version number correctly.
|
||||
|
||||
2006-03-15 Benjamin Herrenschmidt <benh@kernel.crashing.org>
|
||||
|
||||
* hw/xfree86/dri/dri.c: (DRIExtensionInit):
|
||||
|
|
|
@ -298,7 +298,7 @@ ProcDamageDispatch (ClientPtr client)
|
|||
REQUEST(xDamageReq);
|
||||
DamageClientPtr pDamageClient = GetDamageClient (client);
|
||||
|
||||
if (pDamageClient->major_version > NUM_VERSION_REQUESTS)
|
||||
if (pDamageClient->major_version >= NUM_VERSION_REQUESTS)
|
||||
return BadRequest;
|
||||
if (stuff->damageReqType > version_requests[pDamageClient->major_version])
|
||||
return BadRequest;
|
||||
|
|
Loading…
Reference in New Issue
Block a user