RTEMS | feat: add null check for input string in stringto* methods (!929)
Prashant Rahul (@prashantrahul141)
gitlab at rtems.org
Thu Jan 22 05:57:00 UTC 2026
Prashant Rahul created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/929
Project:Branches: prashantrahul141/rtems:feat/libmisc/stringto/input-null-check to rtems/rtos/rtems:main
Author: Prashant Rahul
## Summary
This adds a null check for input string in all stringto* methods. Doing
it this way instead of relying on strto* makes the api more consistent.
Passing input string now returns error code RTEMS_INVALID_ADDRESS
instead of RTEMS_INVALID_NUMBER which is a clearer description of what
actually happened.
Also adds test case for the same.
<!-- 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/929
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/20260122/032f8eb9/attachment-0001.htm>
More information about the bugs
mailing list