diff --git a/gui/rapidxml.hpp b/gui/rapidxml.hpp index 33a88601..f47807d3 100644 --- a/gui/rapidxml.hpp +++ b/gui/rapidxml.hpp @@ -1390,7 +1390,15 @@ namespace rapidxml // Parse BOM, if any parse_bom(text); - + + // Abort if it's ABX format + if (text[0] == Ch('A') && + text[1] == Ch('B') && + text[2] == Ch('X')) { + RAPIDXML_PARSE_ERROR("ABX Format Unsupported by RapidXML", text); + return; + } + // Parse children while (1) {