fix huge number of declaration security issue
This commit is contained in:
12
xmltest.cpp
12
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 =
|
||||
|
||||
Reference in New Issue
Block a user