diff options
Diffstat (limited to 'src/stdlib/strtod.c')
| -rw-r--r-- | src/stdlib/strtod.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stdlib/strtod.c b/src/stdlib/strtod.c index b259f05c..af7ebbb7 100644 --- a/src/stdlib/strtod.c +++ b/src/stdlib/strtod.c @@ -3,6 +3,7 @@ #include <float.h> #include <math.h> #include <stdlib.h> +#include <string.h> #include "_stdlib.h" #ifndef INFINITY @@ -25,6 +26,7 @@ double strtod(const char * restrict nptr, char ** restrict endptr) double huge = HUGE_VAL; SIGNAL_SAFE(0); + ASSERT_NOOVERLAP(nptr, strlen(nptr), endptr, sizeof(*endptr)); #include "_strtod.h" |
