changeset 40039:929010f01e22

autoupdate
author Paul Eggert <eggert@cs.ucla.edu>
date Sun, 16 Dec 2018 07:33:54 -0800
parents 54de6758058f
children 9050cdbaac75
files lib/regexec.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/regexec.c	Sun Dec 16 16:24:28 2018 +0100
+++ b/lib/regexec.c	Sun Dec 16 07:33:54 2018 -0800
@@ -2783,8 +2783,11 @@
 	    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;