Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 6134
Status: new
Priority: 0/
Queue: HTML-Tidy

People
Owner: Nobody in particular
Requestors: deus_x [...] pobox.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



To: bug-html-tidy [...] rt.cpan.org
From: l.m.orchard <deus_x [...] pobox.com>
Subject: Segfault on odd tags
Date: Mon, 26 Apr 2004 11:44:00 -0400
Hi there. Just installed HTML::Tidy v1.02, and I get a segfault when I do something like: perl -MHTML::Tidy -e '$t = new HTML::Tidy(); $h = "<foo><bar><b>Test</b>"; print $t->clean($h);' If I change Tidy.xs, the segfault goes away (since I traced it down to the strlen): 58,59c58,63 < RETVAL = newSVpvn( str, strlen(str) ); < tidyBufFree( &output ); --- Show quoted text
> if (str != 0) { > RETVAL = newSVpvn( str, strlen(str) ); > tidyBufFree( &output ); > } else { > XSRETURN_UNDEF; > }
However, I don't seem to get any output or messages either. Removing the strange non-HTML tags <foo> and <bar> also stops the segfault. -- l.m.orchard <deus_x@pobox.com> http://www.decafbad.com/ ...see you space cowboy.
Download smime.p7s
application/pkcs7-signature 2.3k

Message body not shown because it is not plain text.

From: l.m.orchard <deus_x [...] pobox.com>
Subject: Re: [cpan #6134] AutoReply: Segfault on odd tags
Date: Mon, 26 Apr 2004 11:55:35 -0400
To: bug-HTML-Tidy [...] rt.cpan.org
RT-Send-Cc:
Also... I "fixed" the no-output issue with this: rc = tidyOptSetBool( tdoc, TidyForceOutput, yes ); Not sure if this is the best way to do it, unless there's a better way to supply option to libtidy -- l.m.orchard <deus_x@pobox.com> http://www.decafbad.com/ ...see you space cowboy.
Download smime.p7s
application/pkcs7-signature 2.3k

Message body not shown because it is not plain text.