From 8861a71a3026d98fee84cd93821bf952709975b9 Mon Sep 17 00:00:00 2001 From: Wonsik Jung Date: Fri, 18 Aug 2023 12:28:48 +0900 Subject: [PATCH] Fix Svace Issue Fix Svace Issue to check input param Change-Id: I259d8b1f8facc9e5b80eeee82f0782a3ce8ad112 --- pugixml/pugixml.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/pugixml/pugixml.cpp b/pugixml/pugixml.cpp index 60b55da..5f782d3 100644 --- a/pugixml/pugixml.cpp +++ b/pugixml/pugixml.cpp @@ -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 -- 2.34.1