diff options
Diffstat (limited to 'src/stdlib/strtof.c')
| -rw-r--r-- | src/stdlib/strtof.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stdlib/strtof.c b/src/stdlib/strtof.c index 2dfb8183..cb53b064 100644 --- a/src/stdlib/strtof.c +++ b/src/stdlib/strtof.c @@ -3,6 +3,7 @@ #include <errno.h> #include <ctype.h> #include <math.h> +#include <string.h> #include "_stdlib.h" /** convert string to floating-point **/ @@ -17,6 +18,7 @@ float strtof(const char * restrict nptr, char ** restrict endptr) float nan = NAN; SIGNAL_SAFE(0); + ASSERT_NOOVERLAP(nptr, strlen(nptr), endptr, sizeof(*endptr)); #include "_strtod.h" |
