Re: [xml] RE: HTML Parser problem with big files.

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Wed Dec 27 2000 - 05:52:36 EST


On Mon, Dec 11, 2000 at 02:45:16PM -0500, Marc Sanfacon wrote:
> I found the problem. It is in encoding.c
>
> line 1810:
>
> toconv = in->use;
> if (toconv == 0)
> return(0);
> written = out->size - out->use;
> if (toconv * 2 >= written) {
> /* Old line: xmlBufferGrow(out, toconv * 2); */
> xmlBufferGrow(out, out->size + toconv * 2);
> written = out->size - out->use - 1;
> }

  I found another related bug in xmlBufferGrow(), I will try to
get both fixed in next release (beginning of January.

   thanks,

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | libxml Gnome XML toolkit
Tel : +33 476 615 257  | 655, avenue de l'Europe | http://xmlsoft.org/
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Rpmfind search site
 http://www.w3.org/People/all#veillard%40w3.org  | http://rpmfind.net/
----
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 : Wed Dec 27 2000 - 09:43:47 EST