summaryrefslogtreecommitdiff
path: root/hw/xfree86/xaa/xaaTEGlyph.c
diff options
context:
space:
mode:
authorChenx Dust <chenx_dust@outlook.com>2024-06-11 21:22:44 +0800
committerMarge Bot <emma+marge@anholt.net>2024-06-14 09:53:12 +0000
commit7605833315c05488eca30ed0a70a2a1430e89bbc (patch)
treed01f67fc493b29d89fd2d29cc2b0cb8de3068119 /hw/xfree86/xaa/xaaTEGlyph.c
parentaf6180b2c918b1993b8f4f6d6be3ec81759832cb (diff)
xwayland: fix segment fault in `xwl_glamor_gbm_init_main_dev`HEADmaster
Function `xwl_glamor_gbm_init_main_dev` does not check whether `xwl_screen->default_feedback.main_dev` a.k.a. `main_dev` is a valid pointer. This result in some special situation where main linux-dmabuf device is not accessible, such as KWin nested desktop, raising segment fault. This commit add a null pointer check to prevent crashing. Signed-off-by: Chenx Dust <chenx_dust@outlook.com> Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1683 Fixes: d7f1909e - xwayland/glamor/gbm: make wl_drm optional See-also: https://bugzilla.redhat.com/2284141 Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1565>
Diffstat (limited to 'hw/xfree86/xaa/xaaTEGlyph.c')
0 files changed, 0 insertions, 0 deletions