xserver/hw/xwayland
Adam Jackson 11f4cc47a8 xwayland: Don't (double) destroy RANDR resources in CloseScreen
By the time we get here we've already been through FreeAllResources,
which has already torn down the RANDR objects, so on the second
regeneration you get:

    Invalid read of size 4
       at 0x51C6F0: RRCrtcDestroy (rrcrtc.c:659)
       by 0x4285F5: xwl_output_destroy (xwayland-output.c:191)
       by 0x426464: xwl_close_screen (xwayland.c:112)
       by 0x4B7F77: CursorCloseScreen (cursor.c:187)
       by 0x536013: AnimCurCloseScreen (animcur.c:106)
       by 0x539841: present_close_screen (present_screen.c:64)
       by 0x43E496: dix_main (main.c:351)
       by 0x30D70206FF: (below main) (libc-start.c:289)
     Address 0x4cc6640 is 0 bytes inside a block of size 728 free'd
       at 0x4A07D6A: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
       by 0x51BCCF: RRCrtcDestroyResource (rrcrtc.c:689)
       by 0x45CD91: doFreeResource (resource.c:872)
       by 0x45DE56: FreeClientResources (resource.c:1138)
       by 0x45DF06: FreeAllResources (resource.c:1153)
       by 0x43E3BD: dix_main (main.c:321)
       by 0x30D70206FF: (below main) (libc-start.c:289)

Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
2015-08-12 08:53:38 -07:00
..
.gitignore Xwayland DDX 2014-04-03 15:19:22 -07:00
Makefile.am xwayland: Add dependency on glamor libs 2015-03-24 12:01:38 -07:00
drm.xml xwayland: Add glamor and DRI3 support 2014-06-24 15:09:55 -07:00
xwayland-cursor.c xwayland: Throttle our cursor surface updates with a frame callback 2015-05-27 08:21:00 -07:00
xwayland-cvt.c Xwayland DDX 2014-04-03 15:19:22 -07:00
xwayland-glamor.c glamor: add support for allocating linear buffers (v2) 2015-06-30 12:17:55 +10:00
xwayland-input.c xwayland: Throttle our cursor surface updates with a frame callback 2015-05-27 08:21:00 -07:00
xwayland-output.c xwayland: Don't (double) destroy RANDR resources in CloseScreen 2015-08-12 08:53:38 -07:00
xwayland-shm.c xwayland: keep temp files out of the client mask 2015-06-25 14:11:35 +02:00
xwayland.c xwayland: default to local user if no xauth file given. [CVE-2015-3164 3/3] 2015-05-26 11:22:24 -07:00
xwayland.h xwayland: Throttle our cursor surface updates with a frame callback 2015-05-27 08:21:00 -07:00