Skip Menu |
 

This queue is for tickets about the HTML-Tree CPAN distribution.

Report information
The Basics
Id: 83757
Status: resolved
Priority: 0/
Queue: HTML-Tree

People
Owner: Nobody in particular
Requestors: marshall.cline [...] parashift.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 5.904-TRIAL



Subject: Infinite loop in HTML::Element method as_text() [version 3.23]
Date: Mon, 4 Mar 2013 12:47:07 -0600
To: bug-HTML-Tree [...] rt.cpan.org
From: Marshall Cline <marshall.cline [...] parashift.com>
Download (untitled) / with headers
text/plain 315b
Thanks for your excellent work. Bug location: in version 3.23, at line 1653 of HTML/Element.pm: while(@pile) { if(!defined($pile[0])) { # undef! *# no-op* } elsif(...blah...) { ...blah... } else { ...blah... } } Solution: change '*# no-op*' to '*shift @pile;*'. My best, M
Download (untitled) / with headers
text/plain 177b
I'm not quite sure how you managed to get undef into a tree, but you're right that it'll cause an infinite loop if you do. Your fix is applied in 5.904. Thanks for the report.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.