This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp: Disallow multi-char folds in lookbehind
authorKarl Williamson <public@khwilliamson.com>
Tue, 18 Jan 2011 22:03:41 +0000 (15:03 -0700)
committerKarl Williamson <public@khwilliamson.com>
Tue, 18 Jan 2011 22:48:00 +0000 (15:48 -0700)
commitb57e41186b2ceb48bef4f0588dcd19e105cc8a38
treee21a563ff4806e3c76e1528172ed57de8e3ab0eb
parentbfba585ac769bf0862ff2ce15499506aaa370ece
regcomp: Disallow multi-char folds in lookbehind

The addition of the ANYOFV regnode to treat multi-char folds in a bracketed
character class has exposed a bug, in which those classes have long been able
to be varying length (due to the multi-char fold), but the compiler wasn't
aware of it.  Now it is, and hence won't allow those which have multi-char
folds to be part of a lookbehind pattern, which requires a constant length.

This patch disallows multi-char folds in a lookbehind bracketed character
class.
regcomp.c
t/re/pat_advanced.t