anchao opened a new pull request, #8626: URL: https://github.com/apache/nuttx/pull/8626
## Summary procfs/meminfo: skip invalid character before memdump In the case of echo characters, atoi will mistake CRLF as a digit character and convert it to 0 Signed-off-by: chao an <anc...@xiaomi.com> if dump pid 5, the information of pid 0 will also be printed ``` nsh> echo 5 > /proc/memdump [CPU0] Dump all used memory node info: [CPU0] PID Size Address Backtrace [CPU0] 5 2624 0x1083a040 0x1080d3d2 0x10803230 0x10813468 [CPU0] 5 128 0x1083aa80 0x1080d3d2 0x10803230 0x108034d4 0x10801bc0 0x10801c88 0x1080dfba 0x108128c6 0x1081287c [CPU0] 5 768 0x1083ab00 0x1080d3d2 0x10803230 0x108034d4 0x10808ae2 0x108089f4 0x10807302 0x10810c9c 0x10805f7e [CPU0] 5 64 0x1083ae00 0x1080d3d2 0x10803230 0x10811304 0x10809850 0x10808c2c 0x10808a00 0x10807302 0x10810c9c [CPU0] 5 128 0x1083ae40 0x1080d3d2 0x10803230 0x108034d4 0x1080f27c 0x1080e1e2 0x1080f7ea 0x1080f832 0x1080f8a0 [CPU0] Total Blks Total Size [CPU0] 5 3712 [CPU0] Dump all used memory node info: [CPU0] PID Size Address Backtrace [CPU0] 0 44 0x10836714 [CPU0] 0 128 0x10836740 [CPU0] 0 192 0x108367c0 0x1080d3d2 0x10803230 [CPU0] 0 64 0x10836880 0x1080d3d2 0x10803230 [CPU0] 0 512 0x108368c0 0x1080d3d2 0x10803230 [CPU0] 0 192 0x10836ac0 0x1080d3d2 0x10803230 0x108034d4 0x108052a0 0x1080392c [CPU0] 0 64 0x10836b80 0x1080d3d2 0x10803230 0x108052aa 0x1080392c [CPU0] 0 512 0x10836bc0 0x1080d3d2 0x10803230 0x108034d4 0x1080619a 0x108052c2 0x1080392c [CPU0] 0 192 0x10836dc0 0x1080d3d2 0x10803230 0x108034d4 0x108052a0 0x1080392c ``` ## Impact N/A ## Testing sabre-6quad/smp -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org