From 5ffa73e9792147ad3d454290ef606417cde79dfa Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Thu, 1 Jan 2015 17:47:40 +0300 Subject: [PATCH] Pointer asserts in GetStr() --- tinyxml2.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 42659f2..113f884 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -186,6 +186,8 @@ void StrPair::CollapseWhitespace() const char* StrPair::GetStr() { + TIXMLASSERT( _start ); + TIXMLASSERT( _end ); if ( _flags & NEEDS_FLUSH ) { *_end = 0; _flags ^= NEEDS_FLUSH; @@ -267,6 +269,7 @@ const char* StrPair::GetStr() } _flags = (_flags & NEEDS_DELETE); } + TIXMLASSERT( _start ); return _start; }