Address sanitizer in TiXmlBase::SkipWhiteSpace
Brought to you by:
leethomason
In case of giving string for parsing XML, if there is an "unclosed" element like "<xml "="" the="" parser="" will="" search="" for="">" . While searching, the parser skipps the whitespase with function TiXmlBase::SkipWhiteSpace( const char* p, TiXmlEncoding encoding )</xml>
while ( *p && IsWhiteSpace( *p ) )
++p;
in the 358 line of this fuction, the cursor reaches outsite the memory of the input string. This causes the address sanitizer.
In case of file input for pasring, everything is ok because the memory is locate 1 byte larger than the size of file.