Re: [xml] valgrind errrors with this small sample program

On Wed, Mar 10, 2004 at 03:56:12PM +0100, Holger Rauch wrote:

The following sample program (uses xmlParseMemory() to parse an XML
document) causes many errors in valgrind to appear. I used the latest libxml2
version (2.6.7) compiled from source on a Debian 3.0 "Woody" system (kernel
2.4.23, glibc 2.2.5, gcc 2.95.4). The same example works without any problems
for other XML documents. Could anybody please tell me whether this is a bug
or not? (I'm kind of puzzled. The document is output correctly by
xmlDocDump(), though. But the valgrind errors seem somewhat serious to me.)

The output from valgrind is attached in gzip format.

Thanks in advance for any info on this issue!

  Damn, a very ugly corner case where I forgot a check :-(
Patch enclosed, it will hit CVS very soon ! I will add the test to
the regressions.
Thanks a lot for reporting this,


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

Attachment: parser_diff
Description: Text document

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