Bug #11857: Avoid running off the end of a MAXCLIENTS-sized array.
This commit is contained in:
parent
9e5b3deafb
commit
249c892784
|
@ -487,7 +487,7 @@ int XETrapCreateEnv(ClientPtr client)
|
||||||
XETrapEnv *penv = NULL;
|
XETrapEnv *penv = NULL;
|
||||||
int status = Success;
|
int status = Success;
|
||||||
|
|
||||||
if (client->index > MAXCLIENTS)
|
if (client->index >= MAXCLIENTS)
|
||||||
{
|
{
|
||||||
status = BadImplementation;
|
status = BadImplementation;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user