summaryrefslogtreecommitdiff
path: root/pcre_exec.c
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2013-03-08 10:25:02 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2013-03-08 10:25:02 +0000
commit94d0e3e2cf78cc2eee78fbb339ccff197035c4cb (patch)
treef5e4a4e14b5522b1007b911e356fce8a616f6d5f /pcre_exec.c
parent3b4b082e0050b2b50affabd177e51cbb5de86d0d (diff)
downloadpcre-94d0e3e2cf78cc2eee78fbb339ccff197035c4cb.tar.gz
Fix *SKIP infinite loop.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1273 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_exec.c')
-rw-r--r--pcre_exec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pcre_exec.c b/pcre_exec.c
index 5947b06..b86ffdf 100644
--- a/pcre_exec.c
+++ b/pcre_exec.c
@@ -6919,11 +6919,11 @@ for(;;)
md->ignore_skip_arg = TRUE;
break;
- /* SKIP passes back the next starting point explicitly, but if it is the
- same as the match we have just done, treat it as NOMATCH. */
+ /* SKIP passes back the next starting point explicitly, but if it is no
+ greater than the match we have just done, treat it as NOMATCH. */
case MATCH_SKIP:
- if (md->start_match_ptr != start_match)
+ if (md->start_match_ptr > start_match)
{
new_start_match = md->start_match_ptr;
break;