diff options
Diffstat (limited to 'src/stdlib/strtoll.c')
| -rw-r--r-- | src/stdlib/strtoll.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stdlib/strtoll.c b/src/stdlib/strtoll.c index 10f05209..ab5b3d9e 100644 --- a/src/stdlib/strtoll.c +++ b/src/stdlib/strtoll.c @@ -2,6 +2,7 @@ #include <ctype.h> #include <limits.h> #include <errno.h> +#include <string.h> #include "_stdlib.h" long long int strtoll(const char * restrict nptr, char ** restrict endptr, int base) @@ -11,6 +12,7 @@ long long int strtoll(const char * restrict nptr, char ** restrict endptr, int b long long int min = LLONG_MIN; SIGNAL_SAFE(0); + ASSERT_NOOVERLAP(nptr, strlen(nptr), endptr, sizeof(*endptr)); #include "_strtoi.h" |
