Files
Prashant Rahul 97e4174c62 cpukit/stringto: return RTEMS_INVALID_ADDRESS when null input string
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>
2026-02-06 17:47:28 +00:00
..