From 6fc38ec7cc31b12778d1380062ee01b55c68dfb2 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Thu, 1 Sep 2016 17:59:44 +0300 Subject: [PATCH] Pointer assertions for substring --- tinyxml2.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tinyxml2.h b/tinyxml2.h index 332e124..6468e16 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -139,6 +139,8 @@ public: ~StrPair(); void Set( char* start, char* end, int flags ) { + TIXMLASSERT( start ); + TIXMLASSERT( end ); Reset(); _start = start; _end = end;