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