lei huang created a merge request: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/508

Project:Branches: leihuang/rtems:leihuang-main-patch-50573 to 
rtems/rtos/rtems:main
Author:   lei huang




### Problem Description

The shell memory dump commands (`mdump`, `wdump`, `ldump`) in 
`cpukit/libmisc/shell/main_mdump.c` have a bug  when invoked without arguments.

**Root Cause:**
When these commands are called without providing a memory address argument 
(e.g., just typing `wdump`), the `args_parse()` function sets the address 
pointer to `NULL`. Subsequently, `rtems_mdump()` attempts to dereference this 
NULL pointer, leading to undefined behavior and potential system crash.

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/508
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
bugs@rtems.org
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to