RTEMS | cpukit/shell Fix NULL Pointer Dereference in Shell Memory Dump Commands (!507)

shuhua hua (@huangshuhua) gitlab at rtems.org
Thu Jun 12 09:50:57 UTC 2025



shuhua hua created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/507

Project:Branches: huangshuhua/rtems:huangshuhua-main-patch-12177 to rtems/rtos/rtems:main
Author:   shuhua hua




The shell memory dump commands (`mdump`, `wdump`, `ldump`)have a bug when invoked without arguments.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/507
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250612/417f07bd/attachment.htm>


More information about the bugs mailing list