diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 15:27:12 (GMT) |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 15:27:12 (GMT) |
commit | 5be04ec2ceb1df77afbca4fcbf9e92a712612d6f (patch) | |
tree | 2b2e1c71dffae827c8e45cd4cccc375093d03486 /gl/regexec.c | |
parent | 6d1d1dac32841d5ca6ee51bb09b30a6c604b17e2 (diff) | |
download | monitoring-plugins-5be04ec2ceb1df77afbca4fcbf9e92a712612d6f.tar.gz |
Sync with the latest Gnulib code (d4ec02b3cc)refs/pull/2037/head
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. */ |