Resolve crash when printing malformed entities - issue 291
This commit is contained in:
10
xmltest.cpp
10
xmltest.cpp
@@ -1416,6 +1416,16 @@ int main( int argc, const char ** argv )
|
||||
XMLPrinter printer;
|
||||
}
|
||||
|
||||
{
|
||||
// Issue 291. Should not crash
|
||||
const char* xml = "�</a>";
|
||||
XMLDocument doc;
|
||||
doc.Parse( xml );
|
||||
|
||||
XMLPrinter printer;
|
||||
doc.Print( &printer );
|
||||
}
|
||||
|
||||
// ----------- Performance tracking --------------
|
||||
{
|
||||
#if defined( _MSC_VER )
|
||||
|
||||
Reference in New Issue
Block a user