summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/regexec.c b/regexec.c
index 2ded602e15..870a6535bd 100644
--- a/regexec.c
+++ b/regexec.c
@@ -1463,6 +1463,7 @@ match_at(regex_t* reg, UChar* str, UChar* end, UChar* sstart,
int mb_len = enc_len(encode, *s);
if (s + mb_len > end) {
+ DATA_ENSURE(1);
s = end;
p += tlen;
goto cc_mb_not_success;