Fix regression in floating mandatory string optimisation
authorYves Orton <yves.orton@booking.com>
Wed, 5 Feb 2014 17:39:30 +0000 (01:39 +0800)
committerYves Orton <yves.orton@booking.com>
Wed, 5 Feb 2014 17:39:30 +0000 (01:39 +0800)
commit66175af586bd8040b474a5d2ddb6e6308424b668
tree430cd6239d65f810f2f3e4d00284c5dd36d65397
parent460fc215a9b13030155110e46c455f2f678d6aeb
Fix regression in floating mandatory string optimisation

In 304ee84bde82d4eee33b0d0ff03080b360eae72b I introduced a regression
where floating mandatory strings which were at known offsets started
being treated as though they were allowed "anywhere".

This patch fixes the bug, and adds tests to make sure it does not come
back.

See also discussion in Perl RT #121182.

https://rt.perl.org/Public/Bug/Display.html?id=121182
ext/re/t/regop.pl
ext/re/t/regop.t
regcomp.c