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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Version Fixed In|                            |5.24.1
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/ksystemstats/commit/f3f5
                   |                            |09fca64f6806f5e2533b5e7ab79
                   |                            |07a7e6746
         Resolution|---                         |FIXED

--- Comment #5 from Nate Graham <n...@kde.org> ---
Git commit f3f509fca64f6806f5e2533b5e7ab7907a7e6746 by Nate Graham, on behalf
of Arjen Hiemstra.
Committed on 04/02/2022 at 15:50.
Pushed by ngraham into branch 'master'.

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

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

https://invent.kde.org/plasma/ksystemstats/commit/f3f509fca64f6806f5e2533b5e7ab7907a7e6746

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

Reply via email to