summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/bplist.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bplist.c b/src/bplist.c
index 881c2c8..4a00683 100644
--- a/src/bplist.c
+++ b/src/bplist.c
@@ -733,6 +733,9 @@ PLIST_API void plist_from_bin(const char *plist_bin, uint32_t length, plist_t *
if (num_objects == 0)
return;
+ if (offset_size == 0)
+ return;
+
if (root_object >= num_objects)
return;