[xml] potential problem in trio.c
- From: robert <robert xml 00008 org>
- To: xml gnome org
- Subject: [xml] potential problem in trio.c
- Date: Fri, 25 May 2001 13:01:59 +0200
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.
robert
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]