summaryrefslogtreecommitdiff
path: root/t/t3310-notes-merge-manual-resolve.sh
diff options
context:
space:
mode:
authorLibravatar Juan F. Codagnone <jcodagnone@gmail.com>2018-01-24 13:56:47 -0300
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-01-24 10:52:26 -0800
commit4e801463c7d2b26de747d3684cf75b722b0594af (patch)
tree2704f8dfc3229d531420a854fd43098a8e8d01f0 /t/t3310-notes-merge-manual-resolve.sh
parentGit 2.12.5 (diff)
downloadtgif-4e801463c7d2b26de747d3684cf75b722b0594af.tar.xz
mailinfo: avoid segfault when can't open files
If <msg> or <patch> files can't be opened, then mailinfo() returns an error before it even initializes mi->p_hdr_data or mi->s_hdr_data. When cmd_mailinfo() then calls clear_mailinfo(), we dereference the NULL pointers trying to free their contents. Signed-off-by: Juan F. Codagnone <jcodagnone@gmail.com> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3310-notes-merge-manual-resolve.sh')
0 files changed, 0 insertions, 0 deletions