xml:parse() fails with "Huge input lookup"

Bug #1073754 reported by Alexey Stukalov
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zorba
New
Medium
Nicolae Brinza

Bug Description

When compiled against libxml2 2.9.0 certain scripts that use xml:parse() function fail to process reasonably large files with the following error:
xml:parse(): loader parsing error: internal error: Huge input lookup

This is because at least in 2.9.0 it's required to set XML_PARSE_HUGE option in XmlContext before parsing big files.
The relevant place to do this is e.g. in XmlLoader::applyLoadOptions() method (src/store/naive/loader_dtd.cpp).
When this flag is set the error goes away.

Changed in zorba:
assignee: nobody → Nicolae Brinza (nbrinza)
importance: Undecided → Medium
tags: added: xml-parser
tags: added: segfault
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.