clean up the depth tracking a bit
diff --git a/xmltest.cpp b/xmltest.cpp
index f6e83b5..a1d836d 100644
--- a/xmltest.cpp
+++ b/xmltest.cpp
@@ -2026,12 +2026,19 @@
}
{
- // Bad bad crash.
- XMLDocument doc;
- doc.LoadFile("./resources/xmltest-5330.xml");
- XMLTest("Stack overflow prevented.", XMLError::XML_ELEMENT_DEPTH_EXCEEDED, doc.ErrorID());
+ // Bad bad crash. Parsing error results in stack overflow, if uncaught.
+ const char* TESTS[] = {
+ "./resources/xmltest-5330.xml",
+ "./resources/xmltest-4636783552757760.xml",
+ "./resources/xmltest-5720541257269248.xml",
+ 0
+ };
+ for (int i=0; TESTS[i]; ++i) {
+ XMLDocument doc;
+ doc.LoadFile(TESTS[i]);
+ XMLTest("Stack overflow prevented.", XMLError::XML_ELEMENT_DEPTH_EXCEEDED, doc.ErrorID());
+ }
}
-
{
// Crashing reported via email.
const char* xml =