diff options
author | Juan F. Codagnone <jcodagnone@gmail.com> | 2018-01-24 13:56:47 -0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-01-24 10:52:26 -0800 |
commit | 4e801463c7d2b26de747d3684cf75b722b0594af (patch) | |
tree | 2704f8dfc3229d531420a854fd43098a8e8d01f0 /t/t9002-column.sh | |
parent | Git 2.12.5 (diff) | |
download | tgif-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/t9002-column.sh')
0 files changed, 0 insertions, 0 deletions