Commit 58151b6c authored by Nikias Bassen's avatar Nikias Bassen

Fix crash when converting plists containing comments

Thanks to free2000fly for pointing this out. The issue was that
XML plists with comments converted to binary plists would result
in invalid binary nodes, thus converting back these binary plists
resulted in a crash.
parent c9382f08
...@@ -336,6 +336,10 @@ static void xml_to_node(xmlNodePtr xml_node, plist_t * plist_node) ...@@ -336,6 +336,10 @@ static void xml_to_node(xmlNodePtr xml_node, plist_t * plist_node)
if (!node) if (!node)
break; break;
if (!xmlStrcmp(node->name, BAD_CAST("comment"))) {
continue;
}
data = plist_new_plist_data(); data = plist_new_plist_data();
subnode = plist_new_node(data); subnode = plist_new_node(data);
if (*plist_node) if (*plist_node)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment