Subject: | Infinite loop trying to parse bad .pm |
Date: | Wed, 10 Dec 2014 15:24:26 -0600 |
To: | "bug-CPAN-Site [...] rt.cpan.org" <bug-CPAN-Site [...] rt.cpan.org> |
From: | Jason McCarver <jason.mccarver [...] angelo.edu> |
I ran into a problem when CPAN::Site tried to scan a .pm that looked something like this:
Package Some::Package #note lack of semicolon
1
__END__
=pod
Some documentation that did not contain a single ';'
=cut
When parsing the above file CPAN::Site::Index got into an infinite loop looking for a ';'. I've attached a patch that fixes the problem.
--
Jason McCarver
jmccarv@angelo.edu
Message body is not shown because sender requested not to inline it.