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

Nate Graham <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/plasma-workspace/-/commi |ma/plasma-workspace/-/commi
                   |t/2cbd475768eb9e78f884f6a6b |t/738dd48e65eeee39308a70e54
                   |a7a365096db69ab             |e48abdf39c7b982

--- Comment #11 from Nate Graham <[email protected]> ---
Git commit 738dd48e65eeee39308a70e54e48abdf39c7b982 by Nate Graham.
Committed on 23/07/2026 at 03:55.
Pushed by ngraham into branch 'Plasma/6.6'.

containmentlayoutmanager: guard against non-finite item geometry

containmentlayoutmanager: guard against non-finite item geometry

A malformed ItemGeometries entry containing "inf"/NaN was parsed via
QString::toDouble() straight into the applet geometry and then applied as an
infinite item size. That sends the desktop layout into a CPU-pegged loop,
freezing plasmashell and breaking session D-Bus services (kuiserver etc.),
which in turn crashes dependent apps.

Reject non-finite values on both sides:

- when parsing the saved layout, skip such entries so an existing corrupt
config can no longer wedge the layout (the applet falls back to automatic
placement);
- when serializing, skip items whose geometry is non-finite so the layout
manager does not write such a value back to the config.

###


(cherry picked from commit b2b8fc265f38a1304aebff299e71d1131ff02767)

7fbe9879 containmentlayoutmanager: guard against non-finite item geometry

Co-authored-by: Shouvik Kar <[email protected]>

M  +12   -1    components/containmentlayoutmanager/gridlayoutmanager.cpp
M  +5    -0    components/containmentlayoutmanager/itemcontainer.cpp
M  +2    -0    components/containmentlayoutmanager/itemcontainer.h

https://invent.kde.org/plasma/plasma-workspace/-/commit/738dd48e65eeee39308a70e54e48abdf39c7b982

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

Reply via email to