RTEMS | libdl: Fix NULL pointer deref in rap app alloc (!1363)
Yang Zhang (@Chloe)
gitlab at rtems.org
Wed Jul 22 07:23:21 UTC 2026
Yang Zhang created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1363
Project:Branches: Chloe/rtems:fix-rap-null-deref to rtems/rtos/rtems:main
Author: Yang Zhang
## Summary
In rtems_rap_app_alloc(), the return value of malloc() is passed directly to memset() and rtems_chain_append() without being checked.
If the memory allocation fails, this results in a NULL pointer dereference and a system crash. Therefore, I revise the code to explicitly check for NULL before using the descriptor.
## Generative AI
None
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1363
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/4-12wxgba7q3mjhz3q5k3i6n3vg-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260722/e086d01f/attachment.htm>
More information about the bugs
mailing list