[xml] Flaw in libxml2-2.2.11

Date view Thread view Subject view Author view

From: Vladimir Brauner (VBrauner@datamedia.fr)
Date: Mon Jan 15 2001 - 07:25:25 EST


Dear Sir,
We're completing a C 2000/10 XML Schema layer on top of your libxml stack (&
try to make it DOM L3 CM/LS "orientations" compliant..)

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);

* 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;

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

Vladimir

----
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