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

26-Jul-99 bug: Bad <font> in <tr> causes crash

From: Randy Waki <rwaki144@whizbanglabs.com>
Date: Tue, 27 Jul 1999 11:45:27 -0600
To: "HTML Tidy Mailing List" <html-tidy@w3.org>
Message-ID: <000001bed857$d024ce60$ce9946a6@rwaki>
Thanks for the new release!  Incidentally, the bugs I recently reported in
the 7-Jul-99 Tidy are reproducible in the new 29-Jul-99 version.

Here's a new bug report:

The HTML document below has a table row containing a bad <font> tag with no
content, no ending </font> tag, and no enclosing table cell.  26-Jul-99 Tidy
crashes (on Windows NT, at least) trying to access an illegal address.  Andy
Quick's 7-Jul-99 Java version also crashes (with a NullPointerException),
suggesting that the problem in the C version is with the value of prev in
parser.c, TrimInitialSpace(), line 194:

    if (prev->type == TextNode)

-------- Example HTML document --------
<html>
  <head>
    <title>t</title>
  </head>
  <body>
    <table summary="s">
      <tr>
        <font>
      </tr>
    </table>
  </body>
</html>
---------------------------------------

Thanks,
Randy
Received on Tuesday, 27 July 1999 13:46:40 GMT

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