Files
xserver/Xext
Peter Hutterer 93cafb0828 Xext: dynamically allocate the PanoramiXDepths[j].vids array
Control flow is:
   PanoramiXMaybeAddDepth() allocates an array size 240 (pDepth->numVisuals)
   PanoramiXMaybeAddVisual() finds up to 270 matches (pScreen->numVisuals)
   and writes those into the previously allocated array.

This caused invalid reads/writes followed by eventually a double-free abort.

Reproduced with xorg-integration-tests server test
XineramaTest.ScreenCrossing/* (and a bunch of others).

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
2018-07-19 11:52:14 +10:00
..
2017-10-30 13:45:20 -04:00
2015-07-08 16:40:58 -04:00
2017-03-27 15:59:42 -04:00
2014-11-12 10:25:00 +10:00
2018-01-18 14:08:46 -05:00
2012-03-21 13:54:42 -07:00
2017-10-10 23:33:44 +02:00
2016-09-28 15:25:07 -04:00
2014-01-12 10:24:11 -08:00
2017-06-20 16:37:24 -04:00
2012-03-21 13:54:42 -07:00
2017-10-10 23:33:34 +02:00
2014-11-12 10:25:00 +10:00
2014-01-12 10:24:11 -08:00