summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorHugo van der Sanden <hv@crypt.org>2000-07-13 20:27:13 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2000-07-13 23:32:25 +0000
commit2a8d968921bf85a89f4bb388b94f9acdd8b1f27f (patch)
tree614a35c2279dc638757bfe7052275a27a63d14ad /regcomp.c
parent1b01e11d751fb6e4f4dad94700c05ae36686df44 (diff)
downloadperl-2a8d968921bf85a89f4bb388b94f9acdd8b1f27f.tar.gz
The {multiplier} of a fixed substring was overlooked which
caused a wrong initial search offset for that substring. Subject: [PATCH 5.6.0] Re: [ID 20000613.001] Regex works in v5.005_03 but fails in v5.06 Message-Id: <200007131827.TAA14487@crypt.compulink.co.uk> p4raw-id: //depot/cfgperl@6392
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/regcomp.c b/regcomp.c
index 0407e69787..5b9d87e380 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -901,6 +901,9 @@ S_study_chunk(pTHX_ regnode **scanp, I32 *deltap, regnode *last, scan_data_t *da
sv_catsv(data->last_found, last_str);
data->last_end += l * (mincount - 1);
}
+ } else {
+ /* start offset must point into the last copy */
+ data->last_start_min += minnext * (mincount - 1);
}
}
/* It is counted once already... */