Skip to content

Commit fef840d

Browse files
committed
core/window: fix UAF in createQQuickWindow
1 parent db64642 commit fef840d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/window/proxywindow.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ void ProxyWindowBase::ensureQWindow() {
134134

135135
if (useOldWindow) return;
136136
delete this->window;
137+
this->window = nullptr; // createQQuickWindow may indirectly reference this->window
137138
this->window = this->createQQuickWindow();
138139
this->window->setFormat(format);
139140
}

0 commit comments

Comments
 (0)