diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2015-11-01 15:30:30 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-11-01 10:29:40 -0800 |
commit | 85d9d9ddf38aba0c13a1be8f667af6b8cf021ca6 (patch) | |
tree | 3a282a2a07d3a49039868e99da8613868fbf7290 /Documentation/RelNotes/1.7.8.5.txt | |
parent | mailinfo: remove calls to exit() and die() deep in the callchain (diff) | |
download | tgif-85d9d9ddf38aba0c13a1be8f667af6b8cf021ca6.tar.xz |
mailinfo: fix passing wrong address to git_mailinfo_config
git_mailinfo_config() expects "struct mailinfo *". But in
setup_mailinfo(), "mi" is already "struct mailinfo *". &mi would make
it "struct mailinfo **" and git_mailinfo_config() would damage some
other memory when it assigns some value to mi->use_scissors.
This is caught by t4150.20. git_mailinfo_config() breaks
mi->name.alloc and makes strbuf_release() in clear_mailinfo() attempt
to free strbuf_slopbuf.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/RelNotes/1.7.8.5.txt')
0 files changed, 0 insertions, 0 deletions