summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2016-11-12 11:02:24 +0000
committerDavid Mitchell <davem@iabyn.com>2016-11-12 16:15:09 +0000
commite068d7ce00d1fee2864b3a347fc5eb1f6bfd6250 (patch)
tree32cc0a666ff1cea6e65fd697b1902e6b861575df /regcomp.c
parent6432a58ad9a504c2dc834eb0d131a10b4b6c886b (diff)
downloadperl-e068d7ce00d1fee2864b3a347fc5eb1f6bfd6250.tar.gz
S_setup_longest(): SvTAIL() used where always 0
SvTAIL() isn't set on an SV until fbm_compile() has been called, so there's no point testing it before calling fbm_compile()
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index e9c7972e0c..ac664326f0 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -6677,7 +6677,11 @@ S_setup_longest(pTHX_ RExC_state_t *pRExC_state, SV* sv_longest,
calculate it.*/
ml = minlen ? *(minlen) : (SSize_t)longest_length;
*rx_end_shift = ml - offset
- - longest_length + (SvTAIL(sv_longest) != 0)
+ - longest_length
+ /* XXX SvTAIL is always false here - did you mean FBMcf_TAIL
+ * intead? - DAPM
+ + (SvTAIL(sv_longest) != 0)
+ */
+ lookbehind;
t = (eol/* Can't have SEOL and MULTI */