summaryrefslogtreecommitdiff
path: root/pcre_exec.c
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2018-02-20 15:45:01 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2018-02-20 15:45:01 +0000
commitb68d6793ce6c3bd7e14df27d28e69de9a8eb3cf5 (patch)
treee7b46e65babae563e4a0cec6978493140d87f75b /pcre_exec.c
parent8dc7206187ef9e9486fb5f102b85400ae9795dd1 (diff)
downloadpcre-b68d6793ce6c3bd7e14df27d28e69de9a8eb3cf5.tar.gz
Fix \C backtracking in UTF-8 issue for repeated character classes, which were
overlooked when it was fixed for other repeats. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1725 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_exec.c')
-rw-r--r--pcre_exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pcre_exec.c b/pcre_exec.c
index 1993cb3..3fd58cb 100644
--- a/pcre_exec.c
+++ b/pcre_exec.c
@@ -3053,7 +3053,7 @@ for (;;)
{
RMATCH(eptr, ecode, offset_top, md, eptrb, RM18);
if (rrc != MATCH_NOMATCH) RRETURN(rrc);
- if (eptr-- == pp) break; /* Stop if tried at original pos */
+ if (eptr-- <= pp) break; /* Stop if tried at original pos */
BACKCHAR(eptr);
}
}
@@ -3210,7 +3210,7 @@ for (;;)
{
RMATCH(eptr, ecode, offset_top, md, eptrb, RM21);
if (rrc != MATCH_NOMATCH) RRETURN(rrc);
- if (eptr-- == pp) break; /* Stop if tried at original pos */
+ if (eptr-- <= pp) break; /* Stop if tried at original pos */
#ifdef SUPPORT_UTF
if (utf) BACKCHAR(eptr);
#endif