xserver/randr
hongao 1443fd34ea randr: clear primary screen's primaryOutput when the output is deleted
This fix use after free when a pluggable gpu screen (such as displaylink)
was set as primary screen and unpluged.

gdb backtrace:
 #0 OssigHandler (signo=11, sip=0x7fff2e0a50f0, unused=0x7fff2e0a4fc0) at ../../../../os/osinit.c:138
 #1 <signal handler called>
 #2 rrGetscreenResources (client=0x3195160, query=0) at ../../../../randr/rrscreen.c:577
 #3 0x0000000000562bae in ProcRRGetscreenResourcesCurrent (client=0x3195160) at ../../../../randr/rrscreen.c:652
 #4 OxOOOOB0000054de63 in ProcRRDispatch (client=0x3195160) at ../../../../randr/randr.c:717
 #5 0x00000000004322c6 in Dispatch () at ../../../../dix/dispatch.c:485
 #6 0x0900900990443139 in dix_main (argc=12, argv=0x7fff2e0a5f78, envp=0x7fff2e0a5fe0) at ../../../../dix/main.c:276
 #7 0X0000000000421d9a in main (argc=12, argv=0x7fff2e0a5f78, envp=0x7fff2e0a5fe0) at ../../../../dix/stubmain.c:34

Signed-off-by: hongao <hongao@uniontech.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1553>
2026-02-14 17:03:30 -08:00
..
meson.build meson: hide C API if Xorg is disabled (like autotools) 2021-03-11 00:22:36 +00:00
randr.c randr: move private definitons from randrstr.h to randrstr_priv.h 2026-01-19 12:32:18 -08:00
randrstr.h randr: move private definitons from randrstr.h to randrstr_priv.h 2026-01-19 12:32:18 -08:00
randrstr_priv.h randr: move private definitons from randrstr.h to randrstr_priv.h 2026-01-19 12:32:18 -08:00
rrcrtc.c Strip trailing whitespace from source files 2026-01-25 10:40:02 -08:00
rrdispatch.c prevent name clash on Windows w/ RT_* defines 2026-01-19 12:48:30 -08:00
rrinfo.c Convert top level extensions to new *allocarray functions 2015-04-21 16:57:08 -07:00
rrlease.c prevent name clash on Windows w/ RT_* defines 2026-01-19 12:48:30 -08:00
rrmode.c randr: fix length checking with bigreq 2026-01-25 10:39:58 -08:00
rrmonitor.c randr: fix length checking with bigreq 2026-01-25 10:39:58 -08:00
rroutput.c randr: clear primary screen's primaryOutput when the output is deleted 2026-02-14 17:03:30 -08:00
rrpointer.c randr: Fix logic in RRPointerToNearestCrtc 2014-07-30 14:40:17 -07:00
rrproperty.c randr: fix length checking with bigreq 2026-01-25 10:39:58 -08:00
rrprovider.c randr: fix unconditional byte-swap in ProcRRGetProviderInfo() 2026-01-25 10:40:01 -08:00
rrproviderproperty.c randr: Do not leak the provider property 2026-01-25 10:40:02 -08:00
rrscreen.c randr: do full transform when checking SetScreenSize size 2026-02-14 15:20:23 -08:00
rrsdispatch.c randr: drop swapping request length fields 2026-01-25 10:39:59 -08:00
rrtransform.c randr: Silence -Wshift-negative-value warnings 2015-10-19 11:51:52 -04:00
rrtransform.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
rrxinerama.c randr: drop now obsolete swap procs 2026-01-25 10:39:59 -08:00