summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bplist.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bplist.c b/src/bplist.c
index 7ab9380..7cc8a03 100644
--- a/src/bplist.c
+++ b/src/bplist.c
@@ -727,6 +727,9 @@ PLIST_API void plist_from_bin(const char *plist_bin, uint32_t length, plist_t *
if (offset_size == 0)
return;
+ if (ref_size == 0)
+ return;
+
if (root_object >= num_objects)
return;