summaryrefslogtreecommitdiff
path: root/pack-write.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2017-07-15 18:33:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-07-17 21:51:32 (GMT)
commitf730944a49b2a210bb10520700c0a3f6c49bc020 (patch)
treedcb47674f2e675b1963ce0b3277fc686a72b7a7f /pack-write.c
parent3ea6b85a871aa41eaa66a2919451ad12d492c355 (diff)
downloadgit-f730944a49b2a210bb10520700c0a3f6c49bc020.zip
git-f730944a49b2a210bb10520700c0a3f6c49bc020.tar.gz
git-f730944a49b2a210bb10520700c0a3f6c49bc020.tar.bz2
receive-pack: don't access hash of NULL object_id pointer
We set old_oid to NULL if we found out that it's a corrupt reference. In that case don't try to access the hash member and pass NULL to ref_transaction_delete() instead. 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 'pack-write.c')
0 files changed, 0 insertions, 0 deletions