summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/bplist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bplist.c b/src/bplist.c
index 1a40556..0cfe5fe 100644
--- a/src/bplist.c
+++ b/src/bplist.c
@@ -530,6 +530,8 @@ static plist_t parse_bin_node(struct bplist_data *bplist, const char** object)
530 return NULL; 530 return NULL;
531 (*object)++; 531 (*object)++;
532 next_size = 1 << next_size; 532 next_size = 1 << next_size;
533 if (*object + next_size >= bplist->data + bplist->size)
534 return NULL;
533 size = UINT_TO_HOST(*object, next_size); 535 size = UINT_TO_HOST(*object, next_size);
534 (*object) += next_size; 536 (*object) += next_size;
535 break; 537 break;