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
fillcpu.c system: resmonitor: check CPU load reads 2026-07-06 16:31:38 +08:00
filldisk.c
fillmem.c
Kconfig
Make.defs
Makefile
showinfo.c system: resmonitor: check CPU load reads 2026-07-06 16:31:38 +08:00