load_subtree(): check that `prefix_len` is in the expected range
commit396428152413f431cac18f68a7190827b4acb3b6
authorMichael Haggerty <mhagger@alum.mit.edu>
Fri, 8 Sep 2017 16:10:10 +0000 (8 18:10 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Sep 2017 18:16:13 +0000 (9 03:16 +0900)
tree81ac86b68d2343f7818c493af5f7369f7352f310
parent06cfa75675ac605577c9a42154a9042bfd451937
load_subtree(): check that `prefix_len` is in the expected range

This value, which is stashed in the last byte of an object_id hash,
gets handed around a lot. So add a sanity check before using it in
`load_subtree()`.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
notes.c