diff options
author | René Scharfe <l.s.r@web.de> | 2017-07-15 20:15:26 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-07-17 14:51:07 -0700 |
commit | 3ea6b85a871aa41eaa66a2919451ad12d492c355 (patch) | |
tree | f99cc50988195a6385a961b1dabf0f502fbb8c55 /wt-status.h | |
parent | tree-diff: don't access hash of NULL object_id pointer (diff) | |
download | tgif-3ea6b85a871aa41eaa66a2919451ad12d492c355.tar.xz |
notes: don't access hash of NULL object_id pointer
Check if note is NULL, as we already do for different purposes a few
lines above, and pass a NULL pointer to prepare_note_data() in that
case instead of trying to access the hash member.
Found with Clang's UBSan.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Acked-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'wt-status.h')
0 files changed, 0 insertions, 0 deletions