diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2020-09-28 21:05:27 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-09-29 09:06:07 +0200 |
commit | cd85546a2fbdade42f80fd3b6bd650791db9f32d (patch) | |
tree | 72163b0d5af4d1f6ea71bca27653b38ccc0b77c1 /vcl/quartz | |
parent | d41c45a522c5e973d7043d36bc6c82e77735ab9b (diff) |
tdf#136551 DOTX import: restore support for large XML attribute values
Regression from commit 82d08580e368afbc9d73da3613845a36a89b0a8c (switch
saxparser from expat to libxml2, 2014-11-14), expat used to allow huge
XML attribute values, while libxml2 defaults to rejecting values larger
than 10MB.
This looks like a sane limit, but the bugdoc has some fallback VML
markup where the actual graphic content of the shape is base64-encoded
in an XML attribute value.
libxml2 has an XML_PARSE_HUGE flag to lift this limit, so use that. If
this was not a problem with expat, then it should be no problem with
libxml2, either.
[ No testcase, adding a 10MB test document to the repo is not preferred. ]
Change-Id: Ifcd0ce52d3cb95bef36c58aa073bb59bc07490d6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103567
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'vcl/quartz')
0 files changed, 0 insertions, 0 deletions