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

Re: Infinite loop in ParseList()

From: Dave Raggett <dsr@w3.org>
Date: Sun, 15 Aug 1999 15:39:29 +0100 (GMT Daylight Time)
To: Kenichi Numata <Kenichi.Numata@fujixerox.co.jp>
cc: html-tidy@w3.org
Message-ID: <Pine.WNT.4.10.9908151539010.-308917@hazel.hpl.hp.com>
On Wed, 4 Aug 1999, Kenichi Numata wrote:

> I attach a sample HTML which causes infinite loop in ParseList() in
> "parser.c" (latest version).
> 
> The loop happens when some end tag(</FONT> in this case) comes
> immediately after a list type(OL,UL,etc.) elements' start tag.
> 
> It seems that ParseList() calls GetToken() and UngetToken() repeatedly.
> ---
> <HTML>
> <HEAD><TITLE>Infinite loop</TITLE></HEAD>
> <BODY>
> <FONT size=+2>Title
> <OL>
> </FONT>Text
> </OL>
> </BODY>
> </HTML>

Thanks for the feedback. I will fix this for the next release.

Regards,

-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
phone: +44 122 578 2984 (or 2521) +44 385 320 444 (gsm mobile)
World Wide Web Consortium (on assignment from HP Labs)
Received on Sunday, 15 August 1999 10:36:36 GMT

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