W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2001

RE: Tidy crashes

From: Adrian Lester <Adrian.Lester@openwave.com>
Date: Wed, 5 Sep 2001 13:30:58 +0100
To: <html-tidy@w3.org>
Message-ID: <000b01c13606$9dd3ed60$00c2fea9@bfs.phone.com>
Hi,

Yeah, I can reproduce this bug on in tidy 4 Aug 00.  I was tearing my hair
out with it last week!  But I thought Tidy was ok about attribute values not
being "delimited" the culprit in the example code I suspect is hello not
having any value.  Report Warnings is passed several parameters, one of
which is the value of an attribute.  In the case of attribute hello this is
NULL.  Hence you get this output from tidy...

line 4 column 4 - Warning: <font> unknown attribute value "Segmentation
Fault (core dumped)

Interestingly enough, you can get this same bug for a bad attribute name,
where the problem is the name of the attribute but it tries to report the
problem as being due to the attribute.  Something like this causes a lovely
core...

<table color="red width="100%">

but the real problem is the unbalanced " around the attribute value red.

Adrian

> -----Original Message-----
> From: html-tidy-request@w3.org [mailto:html-tidy-request@w3.org]On
> Behalf Of Terry Teague
> Sent: 05 September 2001 08:00
> To: html-tidy@w3.org
> Subject: Re: Tidy crashes
>
>
> At 5:08 PM -0700 9/4/01, Patrick Lok wrote:
> > Tidy crashes when parsing the following files. Basicaly, it's the
> >attribute values which is not quoted by " blow off tidy when
> tidy tries to
> >print out the warning.
> >
> > <html>
> >    <title> Hello World</title>
> >    <body>
> >    <font face=arial, hello, world>Hi</font>
> >    </body>
> > </html>
>
> I was not able to reproduce this crash in my slightly modified version of
> the 04 Aug 00 code (meaning I might had already fixed this bug), nor with
> the current (03 Sep 01) version of the code. Anyone else able to reproduce
> it? However, in any case I suspect we have already fixed this bug in the
> current code (we fixed a lot of crash bugs like this).
>
> Regards, Terry
>
>
>
Received on Wednesday, 5 September 2001 08:26:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:46 GMT