diff --git a/tinyxml2.h b/tinyxml2.h index 4dfb015..becfffd 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -186,6 +186,8 @@ public: char* ParseName( char* in ); private: + void operator=(const StrPair& rhs); + void Reset(); void CollapseWhitespace(); diff --git a/xmltest.cpp b/xmltest.cpp index 56b6c82..d3508ab 100644 --- a/xmltest.cpp +++ b/xmltest.cpp @@ -1329,6 +1329,14 @@ int main( int argc, const char ** argv ) doc.Print(); } + { + // Test that it doesn't crash. + const char* xml = "<12"; + XMLDocument doc; + doc.Parse(xml); + doc.PrintError(); + } + #if 1 // the question being explored is what kind of print to use: // https://github.com/leethomason/tinyxml2/issues/63