mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-02-07 20:01:55 +08:00
libc's strto* functions' behaviour isn't defined when the passed string is NULL. In glibc it causes a seg fault when I tested it. This could cause inconsistency. rtem's stringto* functions didnt previously checked for null before passing to underlying strto* functions. Added the check which returns `RTEMS_INVALID_ADDRESS` on failure. Also added a test case for the same Signed-off-by: Prashant Rahul <prashantrahul141@protonmail.com>