Re: [xml] potential problem in trio.c
- From: Bjorn Reese <breese mail1 stofanet dk>
- To: xml gnome org
- Subject: Re: [xml] potential problem in trio.c
- Date: Fri, 25 May 2001 14:06:28 +0000
robert wrote:
Browsing through the code of trio.c (libxml2-2.3.9), I stumbled upon
the implementations of trio_asprintf and trio_vasprintf, which both use
TrioOutStreamStringDynamic().
The latter (re)allocates buffers using malloc() and realloc(), instead of
libxml's own memory-handlers xmlMalloc and xmlRealloc, which might pose
potential problems with projects defining their own memory-allocation
routines (like mine).
The same goes for trio_(un)register(), by the way.
Neither trio_(v)asprintf nor trio_(un)register is used in libxml/libxslt.
But adding the ability to register allocation callbacks in trio is a
good idea, which I probably will implement soon.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]