https://bugs.kde.org/show_bug.cgi?id=521935

Marco Martin <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/plasma-nm/-/commit/fcc3a |ma/plasma-nm/-/commit/b45f0
                   |dc536096cf993d740872fffa6c3 |86241d038c476fe760a014f3fcd
                   |1d6dac79                    |276a0438

--- Comment #4 from Marco Martin <[email protected]> ---
Git commit b45f086241d038c476fe760a014f3fcd276a0438 by Marco Martin, on behalf
of Mickaƫl Thomas.
Committed on 14/08/2026 at 07:22.
Pushed by mart into branch 'Plasma/6.7'.

secretagent: fix crash with multiple requests

The QKeyChain `finished` handlers capture a QList item by reference
This is unsafe and causes a crash if a new request is created before the
job finishes, because QList will move the item to a new location and
the captured reference becomes dangling.

Instead, we store QSharedPointer<SecretsRequest> into the list
The QKeyChain callbacks capture a weak reference to the shared pointer
and check the pointer is still valid before use.

M  +105  -90   kded/secretagent.cpp
M  +7    -4    kded/secretagent.h

https://invent.kde.org/plasma/plasma-nm/-/commit/b45f086241d038c476fe760a014f3fcd276a0438

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to