Subject: | XML::TreePP parsing regexp throws an error when file contains certain amount of tags |
This is the part of the regexp in XML::TreePP that makes perl segfault
(or die with a warning in 5.10)
wget -q -O - 'http://www.aggieathletics.com/sports/m-footbl/tam-m-
footbl-body.html' | perl -wle 'my $q = chr(39); my $in; { local $/; $in
= <>; } while ($in =~ m{ < ([^\!\?\s<>](?:"[^"]*"|$q[^
$q]*$q|[^"$q<>])*) > }sxg) {}'
Segmentation fault
(regexp taken from XML::TreePP)
(5.10 dies with: Complex regular subexpression recursion limit (32766)
exceeded at -e line 1, <> line 1.)