mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
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> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| fillcpu.c | ||
| filldisk.c | ||
| fillmem.c | ||
| Kconfig | ||
| Make.defs | ||
| Makefile | ||
| showinfo.c | ||