summaryrefslogtreecommitdiff
path: root/lib/regexec.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-12-16 08:11:35 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2018-12-16 08:12:22 -0800
commitf74595aace4b1240402562b0073b06c170969327 (patch)
treecd50bca64305e2fca5d4fa518e102e530a8b54ef /lib/regexec.c
parent07d8827946f9364180f18d6842acc80f0997ed75 (diff)
Update from Gnulib
This incorporates: 2018-12-16 regex: propagate fix for glibc bug 18040 2018-12-16 obstack, libc-config: Support HP-UX cc in C99 mode 2018-12-15 regex: work around a bug in glibc-2.27 and prior 2018-12-13 localtime-buffer: Avoid endless recursion * build-aux/config.guess, build-aux/config.sub, lib/cdefs.h: * lib/gettext.h, lib/localtime-buffer.c, lib/regexec.c, m4/regex.m4: Copy from Gnulib.
Diffstat (limited to 'lib/regexec.c')
-rw-r--r--lib/regexec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/regexec.c b/lib/regexec.c
index 8b82ea50d44..c7d099c38e4 100644
--- a/lib/regexec.c
+++ b/lib/regexec.c
@@ -2783,8 +2783,11 @@ get_subexp (re_match_context_t *mctx, Idx bkref_node, Idx bkref_str_idx)
return REG_ESPACE;
err = get_subexp_sub (mctx, sub_top, sub_last, bkref_node,
bkref_str_idx);
+ buf = (const char *) re_string_get_buffer (&mctx->input);
if (err == REG_NOMATCH)
continue;
+ if (__glibc_unlikely (err != REG_NOERROR))
+ return err;
}
}
return REG_NOERROR;