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.
Message body not shown because it is not plain text.