mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-03 19:50:11 +01:00
Bug #11857: Avoid running off the end of a MAXCLIENTS-sized array.
This commit is contained in:
parent
9e5b3deafb
commit
249c892784
1 changed files with 1 additions and 1 deletions
|
|
@ -487,7 +487,7 @@ int XETrapCreateEnv(ClientPtr client)
|
|||
XETrapEnv *penv = NULL;
|
||||
int status = Success;
|
||||
|
||||
if (client->index > MAXCLIENTS)
|
||||
if (client->index >= MAXCLIENTS)
|
||||
{
|
||||
status = BadImplementation;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue