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

Re: Bug: missing quotes cause segmentation fault

From: Dave Raggett <dsr@w3.org>
Date: Fri, 1 Sep 2000 14:50:14 +0100 (GMT Daylight Time)
To: Terry Teague <teague@mailandnews.com>
cc: Achim Schaefer <Achim.Schaefer@neuroinformatik.ruhr-uni-bochum.de>, html-tidy@w3.org
Message-ID: <Pine.WNT.4.10.10009011445050.-405663@hazel.hpl.hp.com>
On Wed, 23 Aug 2000, Terry Teague wrote:

> At 5:51 PM +0200 8/23/2000, Achim Schaefer wrote:
> >The following line of code leads to a segmentation fault
> with Tidy (vers 4th August 2000):
> ><a href="test.html>link</a> <a href="test.html">link</a>
> >
> >(The closing quote are missing.)
> 
> >Is this a bug that is already known? Has anybody posted a fix, yet?
> 
> Yes, I believe this is a known bug (or a variation on a known bug) :
> 
> Reported by Scott Davis 19 Jul 00, in the 08 Jul 00 version.
> 
> Mismatched quotes for an element's attribute causes a NULL
> pointer to be dereferenced when reporting the error, which
> causes a crash/segmentation fault on some platforms.

Thanks for the reports. I have modified ParseAttrs() to improve
how it handles missing trailing quotemarks, and added a new
warning to make it clear what is going on. The changes effected
lexer.c, localize.c and html.h. I will include the fixes in the
next release.

Regards,

-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
tel/fax: +44 122 578 3011 (or 2521) +44 778 532 0444 (mobile)
World Wide Web Consortium (on assignment from HP Labs)
Received on Friday, 1 September 2000 09:50:33 GMT

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