RTEMS | libdl: Fix NULL pointer deref in rap app alloc (!1363)
Joel Sherrill (@joel)
gitlab at rtems.org
Thu Jul 23 16:22:21 UTC 2026
Joel Sherrill started a new discussion: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1363#note_155231
It should be possible to trigger the out of memory error. Some tests like testsuites/sptests/spfatal09/init.c have a _consume_all_memory()_ function. Others use someting like spmountmgr01/init.c: which uses _rtems_heap_greedy_allocate()_. Since this is an allocation via _malloc()_, the second method should work.
There are tests under libtests/dl* which use RAP. Copying one of them and allocating all of the memory before calling the service that uses _rtems_rap_app_alloc()_ may be enough to trigger this. And yes, I am suggesting adding a new test executable to exercise this.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1363#note_155231
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/4-8g3fxf5dw4vntw58pgwykwn3m-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/20260723/3459258b/attachment.htm>
More information about the bugs
mailing list