mutter-restart-helper Segmentation fault
Affected version
mutter-43.1
Bug summary
when display
in src/core/restart-helper.c
is null
, Segmentation fault occurs when executing mutter-restart-helper
, because XCompositeGetOverlayWindow (display, DefaultRootWindow (display))
calls LockDisplay
.
#define LockDisplay(d) if ((d)->lock_fns) (*(d)->lock_fns->lock_display)(d)
when d
is null
, Segmentation fault occurs.
so main()
in src/core/restart-helper.c
needs to judge whether display
is null
to avoid Segmentation fault.
Steps to reproduce
#define LockDisplay(d) if ((d)->lock_fns) (*(d)->lock_fns->lock_display)(d) when d is null
What happened
Segmentation fault
What did you expect to happen
no Segmentation fault
Relevant logs, screenshots, screencasts etc.
Edited by Andre Klapper