This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
PATCH: [perl #126181] regex: handle \cX inside (?[])
authorVictor Adam <victor@drawall.cc>
Sun, 27 Sep 2015 08:22:08 +0000 (10:22 +0200)
committerKarl Williamson <khw@cpan.org>
Tue, 20 Oct 2015 17:31:30 +0000 (11:31 -0600)
commit4a84d6e89d52b8921090805085871e6cca66924d
tree8843dbad698402cafd70e44b353fb668f3cfaeb7
parente011baf6f8ae4d213edb446fd811f9509b7abbb8
PATCH: [perl #126181] regex: handle \cX inside (?[])

The \cX notation for control characters used to cause panics and unexpected
behavior when used insed an extended character class. See bug #126181.

The solution is to ignore the byte following \c during the first parsing
pass of a (?[]) construct.
regcomp.c
t/re/regex_sets.t