mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-01 03:03:58 +00:00
Coverity #491: Check version number correctly.
This commit is contained in:
parent
460f2ea4a5
commit
72cc630725
2 changed files with 4 additions and 1 deletions
|
|
@ -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 a new issue