upgrade to vs2017. fix stack overflow attack.

This commit is contained in:
Lee Thomason
2018-04-05 09:11:08 -07:00
parent 65b5366a02
commit d946ddadc2
6 changed files with 80 additions and 23 deletions

View File

@@ -2025,6 +2025,13 @@ int main( int argc, const char ** argv )
}
}
{
// Bad bad crash.
XMLDocument doc;
doc.LoadFile("./resources/xmltest-5330.xml");
XMLTest("Stack overflow prevented.", XMLError::XML_ELEMENT_DEPTH_EXCEEDED, doc.ErrorID());
}
{
// Crashing reported via email.
const char* xml =