xserver-multidpi/randr
Keith Packard 855003c333 randr: Catch two more potential unset rrScrPriv uses
Ricardo Salveti <ricardo.salveti@linaro.org> found one place where the
randr code could use the randr screen private data without checking
for null first. This happens when the X server is running with
multiple screens, some of which are randr enabled and some of which
are not. Applications making protocol requests to the non-randr
screens can cause segfaults where the server touches the unset private
structure.

I audited the code and found two more possible problem spots; the
trick to auditing for this issue was to look for functions not taking
a RandR data structure and where there was no null screen private
check above them in the call graph.

Signed-off-by: Keith Packard <keithp@keithp.com>
2012-06-28 10:06:40 -07:00
..
Makefile.am Revert "randr: Add sprite position transforms" 2011-02-23 11:18:12 -08:00
randr.c randr: first check pScrPriv before using the pointer at RRFirstOutput 2012-06-28 10:06:40 -07:00
randrstr.h api: rework the X server driver API to avoid global arrays. 2012-06-05 13:22:18 +01:00
rrcrtc.c randr: Clean up compiler warnings about unused and shadowing variables 2012-06-21 18:42:46 -07:00
rrdispatch.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
rrinfo.c randr: Clean up compiler warnings about unused and shadowing variables 2012-06-21 18:42:46 -07:00
rrmode.c randr: Clean up compiler warnings about unused and shadowing variables 2012-06-21 18:42:46 -07:00
rroutput.c randr: Catch two more potential unset rrScrPriv uses 2012-06-28 10:06:40 -07:00
rrpointer.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
rrproperty.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
rrscreen.c randr: Catch two more potential unset rrScrPriv uses 2012-06-28 10:06:40 -07:00
rrsdispatch.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
rrtransform.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
rrtransform.h randr: Remove redundant declaration. 2012-05-14 13:16:54 +01:00
rrxinerama.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00