diff options
Diffstat (limited to 'gl/regexec.c')
-rw-r--r-- | gl/regexec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gl/regexec.c b/gl/regexec.c index 13e0349..9f065df 100644 --- a/gl/regexec.c +++ b/gl/regexec.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* Extended regular expression matching and search library. | 1 | /* Extended regular expression matching and search library. |
2 | Copyright (C) 2002-2023 Free Software Foundation, Inc. | 2 | Copyright (C) 2002-2024 Free Software Foundation, Inc. |
3 | This file is part of the GNU C Library. | 3 | This file is part of the GNU C Library. |
4 | Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>. | 4 | Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>. |
5 | 5 | ||
@@ -324,7 +324,7 @@ re_search_2_stub (struct re_pattern_buffer *bufp, const char *string1, | |||
324 | char *s = NULL; | 324 | char *s = NULL; |
325 | 325 | ||
326 | if (__glibc_unlikely ((length1 < 0 || length2 < 0 || stop < 0 | 326 | if (__glibc_unlikely ((length1 < 0 || length2 < 0 || stop < 0 |
327 | || INT_ADD_WRAPV (length1, length2, &len)))) | 327 | || ckd_add (&len, length1, length2)))) |
328 | return -2; | 328 | return -2; |
329 | 329 | ||
330 | /* Concatenate the strings. */ | 330 | /* Concatenate the strings. */ |