diff options
| -rw-r--r-- | src/bplist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bplist.c b/src/bplist.c index d29d499..e9b71eb 100644 --- a/src/bplist.c +++ b/src/bplist.c | |||
| @@ -748,7 +748,7 @@ static plist_t parse_bin_node_at_index(struct bplist_data *bplist, uint32_t node | |||
| 748 | 748 | ||
| 749 | ptr = bplist->data + UINT_TO_HOST(idx_ptr, bplist->offset_size); | 749 | ptr = bplist->data + UINT_TO_HOST(idx_ptr, bplist->offset_size); |
| 750 | /* make sure the node offset is in a sane range */ | 750 | /* make sure the node offset is in a sane range */ |
| 751 | if ((ptr < bplist->data) || (ptr >= bplist->offset_table)) { | 751 | if ((ptr < bplist->data+BPLIST_MAGIC_SIZE+BPLIST_VERSION_SIZE) || (ptr >= bplist->offset_table)) { |
| 752 | PLIST_BIN_ERR("offset for node index %u points outside of valid range\n", node_index); | 752 | PLIST_BIN_ERR("offset for node index %u points outside of valid range\n", node_index); |
| 753 | return NULL; | 753 | return NULL; |
| 754 | } | 754 | } |
