#390223 libgdome2-ocaml: No way to set xmlParserMaxDepth

Package:
libxml2
Source:
libxml2
Description:
GNOME XML library
Submitter:
Ivan Jager
Date:
2021-07-05 18:33:03 UTC
Severity:
normal
Tags:
#390223#5
Date:
2006-09-29 21:24:18 UTC
From:
To:
Hi,

I am using libgdome2-ocaml to parse some XML files which can be very
deeply nested. libxml2 is barfing because xmlParserMaxDepth = 1024,
which is not big enough. (The XML file in question has a depth of almost
2000.)

xmlParserMaxDepth is an unsigned int defined in parser.c of libxml2
sources. I'm not entirely sure if this should be considered a bug in
gmetadom (because there isn't a function to change the value), or a bug
in libxml2 if you aren't supposed to be changing the value.

I'm mostly reporting it here because I want any fixes to make their way
over here.

Ivan

#390223#10
Date:
2006-10-01 13:37:24 UTC
From:
To:
reassign 390223 libxml2
thanks

In my opinion this is not a bug in gmetadom, especially because gmetadom
is just a suite of bindings. IMO it should not change anything of the
underlying library, it should just wrap it.

Thus I'm reassigning the bug report to libxml2.

Cheers.