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

Infinite loop in ParseList()

From: Kenichi Numata <Kenichi.Numata@fujixerox.co.jp>
Date: Wed, 04 Aug 1999 15:04:10 +0900
Message-ID: <37A7D7DA.A77599B5@fujixerox.co.jp>
To: html-tidy@w3.org
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>

-- 
Kenichi Numata
IT Business Development Dept., Fuji Xerox Co., Ltd.
E-Mail: Kenichi.Numata@fujixerox.co.jp
Received on Wednesday, 4 August 1999 02:05:40 GMT

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