summaryrefslogtreecommitdiff
path: root/sequencer.h
diff options
context:
space:
mode:
authorLibravatar Andrey Okoshkin <a.okoshkin@samsung.com>2017-10-20 14:03:28 +0300
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-10-21 21:23:44 +0900
commitc26de08370ad5d927d93dbe6fb46103caabb889c (patch)
tree3b500a2666d4989d0a46a9bbfeb18974878ac695 /sequencer.h
parentPrepare for 2.14.3 (diff)
downloadtgif-c26de08370ad5d927d93dbe6fb46103caabb889c.tar.xz
commit: check result of resolve_ref_unsafe
Add check of the resolved HEAD reference while printing of a commit summary. resolve_ref_unsafe() may return NULL pointer if underlying calls of lstat() or open() fail in files_read_raw_ref(). Such situation can be caused by race: file becomes inaccessible to this moment. Signed-off-by: Andrey Okoshkin <a.okoshkin@samsung.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sequencer.h')
0 files changed, 0 insertions, 0 deletions