forked from pool/tinyxml
- avoid assertion on certain malformed input including null-byte (bsc#1218040) - added tinyxml-null-byte-assert.patch OBS-URL: https://build.opensuse.org/request/show/1133455 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/tinyxml?expand=0&rev=21
13 lines
306 B
Diff
13 lines
306 B
Diff
--- 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;
|