[Expat-discuss] Parsing External Entities

Karl Waclawek karl at waclawek.net
Thu Jan 16 09:52:11 EST 2003


----- Original Message ----- 
From: "Michael B. Allen" <miallen at eskimo.com>
To: "Karl Waclawek" <karl at waclawek.net>
Cc: <expat-discuss at libexpat.org>
Sent: Thursday, January 16, 2003 2:27 AM
Subject: Re: [Expat-discuss] Parsing External Entities


> > > Also, using the external entity XML_Parser created with
> > > XML_ExternalEntityParserCreate my dump program segfaults if I attempt
> > > to free it with XML_ParserFree. I suppose this parser is simply the same
> > > parser in a different state and therefore I need not free it?
> > 
> > No, you must free it. Need more detail.
> > Which version of Expat are you using?
> 
> 1.95.2-2 RPM from RH 7.3

Please try the current CVS release. We have really done a lot of fixing.
A few bugs and a lot of conformance and feature completion
like UTF-16 output and NS triplets are working now.

> Also, to what extent do we free the XML_Content model in element
> declaration handlers? Is that one chunk of memory? Otherwise if I try
> to recursively free children I segfault.

This was mentioned in a very recent message on this list.
It is one chunk, but we are thinking to add either an XML_FreeContentModel
function or an XML_GetMemSuite function to the API.

Karl



More information about the Expat-discuss mailing list