diff options
author | René Scharfe <l.s.r@web.de> | 2017-07-15 19:18:51 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-07-17 14:49:36 -0700 |
commit | fb04dced9c6510176f06953d2cd6a239703401f1 (patch) | |
tree | f76301d811e1c428a8a84336184441edda5fc9f9 /match-trees.c | |
parent | diff: rename diff_fill_sha1_info to diff_fill_oid_info (diff) | |
download | tgif-fb04dced9c6510176f06953d2cd6a239703401f1.tar.xz |
tree-diff: don't access hash of NULL object_id pointer
The object_id pointers can be NULL for invalid entries. Don't try to
dereference them and pass NULL along to fill_tree_descriptor() instead,
which handles them just fine.
Found with Clang's UBSan.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'match-trees.c')
0 files changed, 0 insertions, 0 deletions