Skip to content

XRRGetMonitors(): free correct pointer in error path

Alan Coopersmith requested to merge alanc/libxrandr:free-fix into master

If we are dumping an invalid response from the server, make sure to free the pointer returned by malloc, not our pointer to somewhere later in that buffer.

Fixes: a0df3e1c ("Avoid out of boundary accesses on illegal responses")

Reported-by: Gregory James DUCK

cc: @tstoeckmann

Merge request reports

Loading