This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Don't overallocate space for /[foo]/
authorKarl Williamson <khw@cpan.org>
Wed, 19 Sep 2018 16:02:24 +0000 (10:02 -0600)
committerKarl Williamson <khw@cpan.org>
Thu, 20 Sep 2018 14:30:45 +0000 (08:30 -0600)
commit94b1fc235db3d15b93f78567e32ea87641156e25
treee851fc22d1ddd47d9c514765219ebc979560c128
parentbb0fd582c95534a9ca32b229a3d48714b0dee852
Don't overallocate space for /[foo]/

The ANYOF regnode type (generated by bracketed character classes and
\p{}) was allocating too much space because the argument field was being counted twice
regcomp.h