mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 02:30:06 +01:00
Fix off-by-one error in ProcXResQueryClients().
Fixes memory corruption reported at http://bugs.freedesktop.org/show_bug.cgi?id=14004 .
This commit is contained in:
parent
6d031cbdef
commit
0d1746995d
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ ProcXResQueryClients (ClientPtr client)
|
|||
|
||||
REQUEST_SIZE_MATCH(xXResQueryClientsReq);
|
||||
|
||||
current_clients = xalloc((currentMaxClients - 1) * sizeof(int));
|
||||
current_clients = xalloc(currentMaxClients * sizeof(int));
|
||||
|
||||
num_clients = 0;
|
||||
for(i = 0; i < currentMaxClients; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue