Commit 2c44cd6e authored by Nikias Bassen's avatar Nikias Bassen

bplist: Make sure node index is smaller than number of objects

parent c4dcf11b
......@@ -630,7 +630,7 @@ static plist_t parse_bin_node_at_index(struct bplist_data *bplist, uint32_t node
plist_t plist = NULL;
const char* idx_ptr = NULL;
if (node_index > bplist->num_objects)
if (node_index >= bplist->num_objects)
return NULL;
idx_ptr = bplist->offset_table + node_index * bplist->offset_size;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment