Commit 063c629b authored by Nikias Bassen's avatar Nikias Bassen

bplist: Prevent crash in plist_from_bin() when parsing unusually structured binary plist

parent 5ddbe5fa
......@@ -726,7 +726,7 @@ void plist_from_bin(const char *plist_bin, uint32_t length, plist_t * plist)
for (i = 0; i < num_objects; i++) {
if (i == root_object) continue;
node_t* node = (node_t*)nodeslist[i];
if (NODE_IS_ROOT(node)) {
if (node && NODE_IS_ROOT(node)) {
plist_free(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