Re: [xml] Control char causes infinite loop

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Mon Sep 25 2000 - 08:55:20 EDT


On Wed, Sep 20, 2000 at 11:32:49PM -0700, Wayne Davison wrote:
>
> My book-maker* fetched a web page that had a Ctrl-A at the end of the
> title, and that caused the SAX push parser to infinite loop. The
> following patch fixes this.
>
> For a test case, take any web page, add a Ctrl-A into the text somewhere,
> and then run it through "textHTML -sax -push".
>
> Index: HTMLparser.c
> @@ -4222,8 +4222,8 @@
> ctxt->sax->error(ctxt->userData,
> "detected an error in element content\n");
> ctxt->wellFormed = 0;
> - NEXT;
> }
> + NEXT;
> break;
> }

  I understand this was closed by a patch you provide later, thanks
for the report and the patch !

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux XML libxml WWW
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind
 http://www.w3.org/People/all#veillard%40w3.org  | RPM badminton Kaffe
----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Sep 25 2000 - 09:43:59 EDT