From 68a5a3868309fd5a03fb856e63c0401f084ec038 Mon Sep 17 00:00:00 2001 From: Rye Mutt <rye@alchemyviewer.org> Date: Thu, 21 Dec 2023 22:39:55 -0500 Subject: [PATCH] Fix parsing error for large mesh files --- src/modules/LIBXMLPlugin/daeLIBXMLPlugin.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/modules/LIBXMLPlugin/daeLIBXMLPlugin.cpp b/src/modules/LIBXMLPlugin/daeLIBXMLPlugin.cpp index 9024ed0..374ad7d 100644 --- a/src/modules/LIBXMLPlugin/daeLIBXMLPlugin.cpp +++ b/src/modules/LIBXMLPlugin/daeLIBXMLPlugin.cpp @@ -1,9 +1,9 @@ -/* -* Copyright 2006 Sony Computer Entertainment Inc. -* -* Licensed under the MIT Open Source License, for details please see license.txt or the website -* http://www.opensource.org/licenses/mit-license.php -* +/* +* Copyright 2006 Sony Computer Entertainment Inc. +* +* Licensed under the MIT Open Source License, for details please see license.txt or the website +* http://www.opensource.org/licenses/mit-license.php +* */ // The user can choose whether or not to include libxml support in the DOM. Supporting libxml will @@ -162,12 +162,12 @@ namespace { // A simple structure to help alloc/free xmlTextReader objects struct xmlTextReaderHelper { xmlTextReaderHelper(const daeURI& uri) { - if((reader = xmlReaderForFile(cdom::fixUriForLibxml(uri.str()).c_str(), NULL, 0))) + if((reader = xmlReaderForFile(cdom::fixUriForLibxml(uri.str()).c_str(), NULL, XML_PARSE_HUGE))) xmlTextReaderSetErrorHandler(reader, libxmlErrorHandler, NULL); } xmlTextReaderHelper(daeString buffer, const daeURI& baseUri) { - if((reader = xmlReaderForDoc((xmlChar*)buffer, cdom::fixUriForLibxml(baseUri.str()).c_str(), NULL, 0))) + if((reader = xmlReaderForDoc((xmlChar*)buffer, cdom::fixUriForLibxml(baseUri.str()).c_str(), NULL, XML_PARSE_HUGE))) xmlTextReaderSetErrorHandler(reader, libxmlErrorHandler, NULL); }; -- GitLab