Re: [xml] Flaw in libxml2-2.2.11

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@imag.fr)
Date: Mon Jan 15 2001 - 08:11:16 EST


On Mon, Jan 15, 2001 at 01:25:25PM +0100, Vladimir Brauner wrote:
>
> Dear Sir,
> We're completing a C 2000/10 XML Schema layer on top of your libxml stack (&

  Hum, very interesting, do you plan to make it available ?

> try to make it DOM L3 CM/LS "orientations" compliant..)

  I didn't look at this, others especially in the Gnome/Php community
are working on DOM implementations on top of libxml.

> Two small remarks about 2-2.2.11:
>
> * Flaw in tree.c:
> Function xmlDocDumpFormatMemoryEnc(... int format) forgets to pass
> this format argument when calling xmlDocContentDumpOutput (last arg, fixed
> as 1);

  I think this was already reported, right.

> * Error report enhancement (private comment):
> error.c :
>
> You provide a generic error report callback, which can be set thru
> xmlSetGenericErrorFunc().
> Your code assumes that private context (void *ctx) is always a
> FILE*, which is a little restrictive (we use it to store something not
> related at all with stdio);
> The "cause" is just because you use vfprintf(ctx) in
> xmlParser(Validity)Error/Warning();
> As a "bypass", we just changed these vfprintf as vsnprintf(local
> buffer) before calling xmlGenericError;

  Hum, sounds right.
Could you subscribe to the mailing list and send a quick diff of the changes
you made to those 2 modules ? Thanks,

> Best Regards, and thanks for your great job on libxml!

  thanks,

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
daniel@veillard.com  | libxml Gnome XML toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine 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 : Mon Jan 15 2001 - 08:52:02 EST