D21085: Fix crash due to dangling reference
Fabian Vogt <[email protected]>
| Newsgroups | gmane.comp.kde.devel.kwin |
|---|---|
| Message-ID | <[email protected]> |
fvogt created this revision. fvogt added a reviewer: KWin. Herald added a project: KWin. Herald added a subscriber: kwin. fvogt requested review of this revision. REVISION SUMMARY Returning a reference to a value on the stack is broken. This caused kwin_wayland to crash in openQA with a nullptr deref. BUG: 407199 TEST PLAN Only build tested. REPOSITORY R108 KWin BRANCH fi REVISION DETAIL https://phabricator.kde.org/D21085 AFFECTED FILES plugins/platforms/drm/drm_output.cpp plugins/platforms/drm/drm_output.h To: fvogt, #kwin Cc: kwin, jraleigh, GB_2, mkulinski, ragreen, jackyalcine, Pitel, iodelay, bwowk, ZrenBot, ngraham, alexeymin, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart