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

Arjen Hiemstra <ahiems...@heimr.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/ksystemstats/-/commit/47
                   |                            |8e766d19b333a7cc2316ed11e00
                   |                            |2928673ba2c
         Resolution|---                         |FIXED

--- Comment #8 from Arjen Hiemstra <ahiems...@heimr.nl> ---
Git commit 478e766d19b333a7cc2316ed11e002928673ba2c by Arjen Hiemstra.
Committed on 02/10/2024 at 11:45.
Pushed by ahiemstra into branch 'Plasma/6.2'.

plugins/cpu: Ignore invalid CPU info when reading /proc/cpuinfo

On some systems, /proc/cpuinfo contains non-core related data. When that
happens, we would end up creating an invalid CpuInfo object that would
later on crash ksystemstats. Instead, ignore said CpuInfo object
properly so we don't crash.

Patch based on Jonathan L Hanmann's suggestion from the bug report.


(cherry picked from commit c5bc0067b31f6c2bdee127702c6cc4717c770808)

Co-authored-by: Arjen Hiemstra <ahiems...@heimr.nl>

M  +10   -3    plugins/cpu/linuxcpuplugin.cpp

https://invent.kde.org/plasma/ksystemstats/-/commit/478e766d19b333a7cc2316ed11e002928673ba2c

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

Reply via email to