mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-04 13:00:28 +01:00
XF86VidMode: Fix free() on walked pointer
Based on: https://patchwork.freedesktop.org/patch/85636/ Rewritten to just not walk the pointer. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Emi Velikov <emil.l.velikov@gmail.com>
This commit is contained in:
parent
220d327ee0
commit
380c2ca25e
1 changed files with 1 additions and 1 deletions
|
|
@ -1364,7 +1364,7 @@ ProcVidModeGetDotClocks(ClientPtr client)
|
|||
WriteToClient(client, sizeof(xXF86VidModeGetDotClocksReply), &rep);
|
||||
if (!ClockProg) {
|
||||
for (n = 0; n < numClocks; n++) {
|
||||
dotclock = *Clocks++;
|
||||
dotclock = Clocks[n];
|
||||
if (client->swapped) {
|
||||
WriteSwappedDataToClient(client, 4, (char *) &dotclock);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue