SHA256
8
0
forked from pool/tinyxml
Files
tinyxml/tinyxml-null-byte-assert.patch

13 lines
306 B
Diff
Raw Permalink Normal View History

--- a/tinyxmlparser.cpp 2011-05-15 04:24:57.000000000 +0200
+++ b/tinyxmlparser.cpp 2023-12-15 12:06:34.919095166 +0100
@@ -1600,6 +1600,9 @@
}
p = SkipWhiteSpace( p, _encoding );
+ if (!p || !*p)
+ break;
+
if ( StringEqual( p, "version", true, _encoding ) )
{
TiXmlAttribute attrib;