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

Nate Graham <n...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/ksystemstats/commit/f3f5 |ma/ksystemstats/commit/9967
                   |09fca64f6806f5e2533b5e7ab79 |0f3a2ec04037da341e5ae11cbc4
                   |07a7e6746                   |81c799f35

--- Comment #6 from Nate Graham <n...@kde.org> ---
Git commit 99670f3a2ec04037da341e5ae11cbc481c799f35 by Nate Graham, on behalf
of Arjen Hiemstra.
Committed on 04/02/2022 at 15:51.
Pushed by ngraham into branch 'Plasma/5.24'.

CPU Plugin: Prevent integer overflow of total usage

In some cases, the values we read from the system can result in a
negative difference to the previous values. This was already guarded
partially, but only for system/user/wait usage. Total usage would still
be able to go negative, resulting in overflow of the total usage.

Instead, ensure that all the differences are always at least 0, so if we
add things together we aren't adding negatives.
FIXED-IN: 5.24.1


(cherry picked from commit f3f509fca64f6806f5e2533b5e7ab7907a7e6746)

M  +16   -7    plugins/cpu/usagecomputer.cpp

https://invent.kde.org/plasma/ksystemstats/commit/99670f3a2ec04037da341e5ae11cbc481c799f35

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

Reply via email to