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

7-Jul-99 bug: Possible bad pointer when moving <b> inside of <li>

From: Randy Waki <rwaki144@whizbanglabs.com>
Date: Thu, 22 Jul 1999 18:26:21 -0600
To: <html-tidy@w3.org>
Message-ID: <000301bed4a1$fd582cb0$ce9946a6@rwaki>
Thanks for Tidy!  It's proving invaluable.

I have some apparent bugs to report (in this and subsequent messages).

The HTML document below has a <b> outside of an <li> rather than inside it.
I think this is causing 7-Jul-99 Tidy to dereference a bad pointer in
istack.c, InsertedToken(), line 235:

    istack = lexer->insert;

Symptoms seem to vary depending on the contents of memory.  One (much
longer) incarnation of this example document caused Tidy to generate the
invalid start tag "<\0x18\0x0d\0x0a\0x30>" along with the corresponding end
tag.  Also, Andy Quick's 7-Jul-99 Java Tidy throws an
ArrayIndexOutOfBoundsException every time (which is what leads me to suspect
the above mentioned line).

-------- Example HTML document --------
<html>
  <head>
    <title>x</title>
  </head>
  <body>
    <ul>
      <li>item 1</li>
      <b><li>item 2</li></b>
    </ul>
  </body>
</html>
---------------------------------------

Randy
Received on Thursday, 22 July 1999 20:26:57 GMT

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