diff options
| author | Glen Choo <chooglen@google.com> | 2022-03-01 16:36:13 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-03-01 23:27:09 -0800 |
| commit | 8d2eaf649abd28baa083a723d1e041b26d2be83e (patch) | |
| tree | ae72cb98b4b15b4b19187a5d96aab76d3bcf9258 /builtin/index-pack.c | |
| parent | Git 2.35.1 (diff) | |
| download | git-8d2eaf649abd28baa083a723d1e041b26d2be83e.tar.gz git-8d2eaf649abd28baa083a723d1e041b26d2be83e.zip | |
checkout, clone: die if tree cannot be parsed
When a tree oid is invalid, parse_tree_indirect() can return NULL. Check
for NULL instead of proceeding as though it were a valid pointer and
segfaulting.
Signed-off-by: Glen Choo <chooglen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/index-pack.c')
0 files changed, 0 insertions, 0 deletions
