After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 78966 - xmllint in 2.4.20 can't stand long lists
xmllint in 2.4.20 can't stand long lists
Status: VERIFIED FIXED
Product: libxml2
Classification: Platform
Component: general
2.4.19
Other Linux
: Normal major
: ---
Assigned To: Daniel Veillard
Daniel Veillard
Depends on: 78729
Blocks:
 
 
Reported: 2002-04-17 15:49 UTC by Frodo Looijaard
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Frodo Looijaard 2002-04-17 15:49:47 UTC
I get an error with the xmllint in 2.4.20 which I don't get in 2.4.19. I
think there is some kind of internal overflow here.

The DTD says:
<!ELEMENT index (indexentry*)>

There are about 1100 indexentry elements within the index element.

The error I get is:
xml/timeline.xml:11727: validity error: Element index content doesn't
follow the DTD
Expecting (indexentry)*, got (indexentry indexentry indexentry indexentry
indexentry indexentry indexentry indexentry indexentry indexentry
[many more such lines skipped]
indexentry indexentry  ...
   </index>
          ^

The document conforms to the DTD according to 2.4.19

There is another element with a somewhat alike definition which also
triggers the error (this time containing about 900 elements).
Comment 1 Daniel Veillard 2002-04-17 16:05:28 UTC
It's a temporary measure against bug #78729,
in the meantime increase seriously the value of MAX_RECURSE
at line 94 in valid.c

Daniel
Comment 2 Daniel Veillard 2002-09-19 21:50:33 UTC
Should be fixed in CVS now, 78729 is fixed, and the limitation
introduced is fixed too, that part of the code has been completely
revamped ! Either grab the version from CVS or wait for the next
release.

  thanks for the report !

Daniel
Comment 3 Daniel Veillard 2002-09-26 21:39:36 UTC
Should be closed in the last release,

  thanks,

Daniel