commit | 6f51c803a103ab778f8d0bf044557a9d1fb2f7af | [log] [tgz] |
---|---|---|
author | Dmitry-Me <wipedout@yandex.ru> | Sat Mar 14 13:25:03 2015 +0300 |
committer | Dmitry-Me <wipedout@yandex.ru> | Sat Mar 14 13:25:03 2015 +0300 |
tree | e7fbde774b3f6ee58a52ea152027c4275b3acb25 | |
parent | 0f922e7c9af73d411646f7faddf909cc9c42ca0e [diff] [blame] |
Resolve crash when printing malformed entities - issue 291
diff --git a/xmltest.cpp b/xmltest.cpp index c231024..243628c 100644 --- a/xmltest.cpp +++ b/xmltest.cpp
@@ -1416,6 +1416,16 @@ 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 )