mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-17 20:50:45 +02:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue