nuttx-apps/system/resmonitor
Old-Ding 6eead56aa9 system: resmonitor: check CPU load reads
Keep the default zero CPU value when the procfs load file cannot be read, and trim only the newline that was actually present. This avoids parsing uninitialized stack data in fillcpu and avoids writing before the showinfo CPU buffer when fgets returns no data.

Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-06 16:31:38 +08:00
..
CMakeLists.txt apps/testing: Move irtest/sensortest/resmonitor/monkey to apps/system 2025-01-27 02:25:08 +01:00
fillcpu.c system: resmonitor: check CPU load reads 2026-07-06 16:31:38 +08:00
filldisk.c !apps: drop redundant casts on tv_sec/tv_nsec and fix printf formats 2026-05-22 13:38:25 +08:00
fillmem.c apps/testing: Move irtest/sensortest/resmonitor/monkey to apps/system 2025-01-27 02:25:08 +01:00
Kconfig apps/testing: Move irtest/sensortest/resmonitor/monkey to apps/system 2025-01-27 02:25:08 +01:00
Make.defs apps/testing: Move irtest/sensortest/resmonitor/monkey to apps/system 2025-01-27 02:25:08 +01:00
Makefile apps/testing: Move irtest/sensortest/resmonitor/monkey to apps/system 2025-01-27 02:25:08 +01:00
showinfo.c system: resmonitor: check CPU load reads 2026-07-06 16:31:38 +08:00