diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/regex_internal.h | 1 | ||||
-rw-r--r-- | lib/regexec.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/regex_internal.h b/lib/regex_internal.h index ae9257eac0..0270091df7 100644 --- a/lib/regex_internal.h +++ b/lib/regex_internal.h @@ -29,6 +29,7 @@ #include <locale.h> #include <wchar.h> #include <wctype.h> +#include <stdckdint.h> #include <stdint.h> #ifndef _LIBC diff --git a/lib/regexec.c b/lib/regexec.c index 13e0349e72..f05f38ae0e 100644 --- a/lib/regexec.c +++ b/lib/regexec.c @@ -324,7 +324,7 @@ re_search_2_stub (struct re_pattern_buffer *bufp, const char *string1, char *s = NULL; if (__glibc_unlikely ((length1 < 0 || length2 < 0 || stop < 0 - || INT_ADD_WRAPV (length1, length2, &len)))) + || ckd_add (&len, length1, length2)))) return -2; /* Concatenate the strings. */ |