diff options
Diffstat (limited to 'src/stdlib/strtol.c')
| -rw-r--r-- | src/stdlib/strtol.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stdlib/strtol.c b/src/stdlib/strtol.c index dc2b9d87..525273d9 100644 --- a/src/stdlib/strtol.c +++ b/src/stdlib/strtol.c @@ -2,6 +2,7 @@ #include <errno.h> #include <limits.h> #include <stdlib.h> +#include <string.h> #include "_stdlib.h" /** convert string to long integer **/ @@ -13,6 +14,7 @@ long int strtol(const char * restrict nptr, char ** restrict endptr, int base) long int min = LONG_MIN; SIGNAL_SAFE(0); + ASSERT_NOOVERLAP(nptr, strlen(nptr), endptr, sizeof(*endptr)); #include "_strtoi.h" |
