RTEMS | objectinitializeinformation.c: Add Assert for API index too high (!159)
Joel Sherrill (@joel)
gitlab at rtems.org
Fri Aug 2 16:18:18 UTC 2024
Joel Sherrill created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/159
Project:Branches: joel/rtems:add-assert-to-object-initialize-information to rtems/rtos/rtems:main
Author: Joel Sherrill
Assignee: Joel Sherrill
## Summary
objectinitializeinformation.c: Add Assert for API index too high
Coverity Scan spotted the possibility that the
_Objects_Information_table could be over-indexed if the API
value provided was too high. This function is only used during
initialization and the input should be trusted. Adding a debug
_Assert() emphasizes this trust.
Coverity CID 1512508
Closes #5084.
<!-- Default settings, if it is a dropdown it will set after submission -->
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/159
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/20240802/845b52af/attachment.htm>
More information about the bugs
mailing list