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


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to