mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-28 12:20:41 +02:00
dix: Fix potential memory corruption in doListFontsWithInfo.
Signed-off-by: Kim Woelders <kim@woelders.dk>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 4970666827)
This commit is contained in:
parent
4257023c1e
commit
19592ee774
1 changed files with 1 additions and 1 deletions
|
|
@ -1046,7 +1046,7 @@ doListFontsWithInfo(ClientPtr client, LFWIclosurePtr c)
|
|||
err = AllocError;
|
||||
break;
|
||||
}
|
||||
memset(reply + c->length, 0, length - c->length);
|
||||
memset((char*)reply + c->length, 0, length - c->length);
|
||||
c->reply = reply;
|
||||
c->length = length;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue