Re: [xml] memory leakages when parsing



On Mon, Oct 25, 2004 at 03:32:27PM +0200, Volker Roth wrote:
Hello,
we find memory leakages in the following situation:

An xml-File references an Entity defined in the DTD

  The problem could be reproduced with the same data and xmllint.
It's an entity expansion problem which could be reproduced easilly
with the same data using xmllint:

paphio:~/XML -> xmllint --dtdattr --valid --noent hallowelt.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE rnode SYSTEM "hallowelt.dtd">
<rnode>
    
   <f att1="J">
   hello world
   </f>
    
</rnode>
paphio:~/XML -> cat .memdump
      04:23:48 PM
 
      MEMORY ALLOCATED : 16, MAX was 49574
BLOCK  NUMBER   SIZE  TYPE
0         150      8 malloc()  in none(0) "nbktext"
1         149      8 malloc()  in none(0) "nbktext"
paphio:~/XML -> 

  it's really due to the entity content. It was easy to fix, the
patch as well as regression tests data have been commited to CVS

  thanks for the report,

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]