diff options
| author | Michael Haggerty <mhagger@alum.mit.edu> | 2017-09-08 18:10:10 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2017-09-09 03:16:13 +0900 |
| commit | 396428152413f431cac18f68a7190827b4acb3b6 (patch) | |
| tree | 81ac86b68d2343f7818c493af5f7369f7352f310 /refs/files-backend.c | |
| parent | load_subtree(): declare some variables to be `size_t` (diff) | |
| download | git-396428152413f431cac18f68a7190827b4acb3b6.tar.gz git-396428152413f431cac18f68a7190827b4acb3b6.zip | |
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>
Diffstat (limited to 'refs/files-backend.c')
0 files changed, 0 insertions, 0 deletions
