fix huge number of declaration security issue
diff --git a/xmltest.cpp b/xmltest.cpp
index a7dbc25..ac0d85c 100644
--- a/xmltest.cpp
+++ b/xmltest.cpp
@@ -2050,6 +2050,18 @@
XMLTest("Stack overflow prevented.", XML_ELEMENT_DEPTH_EXCEEDED, doc.ErrorID());
}
}
+ {
+ const char* TESTS[] = {
+ "./resources/xmltest-5662204197076992.xml", // Security-level performance issue.
+ 0
+ };
+ for (int i = 0; TESTS[i]; ++i) {
+ XMLDocument doc;
+ doc.LoadFile(TESTS[i]);
+ // Need only not crash / lock up.
+ XMLTest("Fuzz attack prevented.", true, true);
+ }
+ }
{
// Crashing reported via email.
const char* xml =