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
..

libtests

This directory contains tests for some of the items in the lib directories. The intent is to be able to verify the basic functionality of a library. For example, it is important to know that the stack checker successfully detects tasks which both stay within and exceed their stack limits.