Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/leethomason/tinyxml2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'xmltest.cpp')
-rw-r--r--xmltest.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/xmltest.cpp b/xmltest.cpp
index da977d5..0299909 100644
--- a/xmltest.cpp
+++ b/xmltest.cpp
@@ -2050,6 +2050,18 @@ int main( int argc, const char ** argv )
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 =