mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 10:14:52 +00: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:
committed by
Adam Jackson
parent
220d327ee0
commit
380c2ca25e
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user