mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-26 03:50:25 +01:00
CheckWindowOptionalNeed: Ensure w->optional is set to avoid SEGFAULT
If CheckWindowOptionalNeed is called consecutively (and the first removes optional), then
we will SEGFAULT. This can happen in XQuartz because ReparentWindow will call
pScreen->ReparentWindow which can DeleteProperty which will CheckWindowOptionalNeed... then
ReparentWindow will call it again later indiscriminantly.
(cherry picked from commit b608c864cc)
This commit is contained in:
parent
f37a5f5479
commit
238d280f85
1 changed files with 1 additions and 1 deletions
|
|
@ -3429,7 +3429,7 @@ CheckWindowOptionalNeed (WindowPtr w)
|
|||
WindowOptPtr optional;
|
||||
WindowOptPtr parentOptional;
|
||||
|
||||
if (!w->parent)
|
||||
if (!w->parent || !w->optional)
|
||||
return;
|
||||
optional = w->optional;
|
||||
if (optional->dontPropagateMask != DontPropagateMasks[w->dontPropagate])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue