Re: [xml] Possible malformation "bug" in libxml2
- From: Daniel Veillard <veillard redhat com>
- To: Regis Wilson <rwilson wmgnp tempdomainname com>
- Cc: xml gnome org
- Subject: Re: [xml] Possible malformation "bug" in libxml2
- Date: Mon, 19 Jan 2004 16:09:05 -0500
On Mon, Jan 19, 2004 at 11:44:48AM -0800, Regis Wilson wrote:
Solution offered! See the original thread here:
http://mail.gnome.org/archives/xml/2004-January/msg00098.html
A simple copy-paste of the "Drop tag like browsers do" worked great. Here's
the diff against 2.6.4 12/24/2003 code:
3240,3242d3239
< /* Dump the bogus tag like browsers do */
< while ((IS_CHAR_CH(CUR)) && (CUR != '>'))
< NEXT;
3250,3252d3246
< /* Dump the bogus tag like browsers do */
< while ((IS_CHAR_CH(CUR)) && (CUR != '>'))
< NEXT;
3262,3264c3256,3257
< /* Dump the bogus tag like browsers do */
< while ((IS_CHAR_CH(CUR)) && (CUR != '>'))
< NEXT;
This covers both cases of <html> and <body> (I hope?). Comments, criticism,
testing, appreciated!
Well, try sending a contextual diff, I can guess it may apply to HTMLparser.c
but I would not try betting on pure line numbers as the context...
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]