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 719895 - librsvg is unable to open 'HUGE' svg files (XML_PARSE_HUGE)
librsvg is unable to open 'HUGE' svg files (XML_PARSE_HUGE)
Status: RESOLVED DUPLICATE of bug 710310
Product: librsvg
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2013-12-05 11:53 UTC by Arjen Nienhuis
Modified: 2013-12-05 17:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add XML_PARSE_HUGE to the parse options (2.25 KB, patch)
2013-12-05 11:55 UTC, Arjen Nienhuis
none Details | Review

Description Arjen Nienhuis 2013-12-05 11:53:59 UTC
librsvg doesn't pass the XML_PARSE_HUGE flag to libxml.

This makes it impossible to open a SVG-file with large images. (10 MB)

I get the following error:

GError: Error domain 1 code 1 on line 148310 column 1 of <path to svg>: internal error: Huge input lookup

The attached patch solves the issue for me, but maybe a flag is a better option.
Comment 1 Arjen Nienhuis 2013-12-05 11:55:03 UTC
Created attachment 263581 [details] [review]
Add XML_PARSE_HUGE to the parse options
Comment 2 Christian Persch 2013-12-05 17:21:59 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 710310 ***