Fix Svace Issue 14/297414/1 accepted/tizen/unified/20230821.103303
authorWonsik Jung <sidein@samsung.com>
Fri, 18 Aug 2023 03:28:48 +0000 (12:28 +0900)
committerWonsik Jung <sidein@samsung.com>
Fri, 18 Aug 2023 03:30:05 +0000 (12:30 +0900)
Fix Svace Issue to check input param

Change-Id: I259d8b1f8facc9e5b80eeee82f0782a3ce8ad112

pugixml/pugixml.cpp

index 60b55da..5f782d3 100644 (file)
@@ -8042,6 +8042,7 @@ PUGI__NS_BEGIN
 
        PUGI__FN bool node_is_before_sibling(xml_node_struct* ln, xml_node_struct* rn)
        {
+               assert(ln && rn);
                assert(ln->parent == rn->parent);
 
                // there is no common ancestor (the shared parent is null), nodes are from different documents