From 063c629baef6028e84838f77fd1401b05e41dc58 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 23 Sep 2014 17:50:43 +0200 Subject: bplist: Prevent crash in plist_from_bin() when parsing unusually structured binary plist --- src/bplist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bplist.c b/src/bplist.c index 91d5578..181c150 100644 --- a/src/bplist.c +++ b/src/bplist.c @@ -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); } } -- cgit v1.1-32-gdbae