[PATCH 0/1] difftool: fix a use-after-free bug
- Date: Thu, 13 Apr 2017 21:21:53 +0200 (CEST)
- From: Johannes Schindelin <johannes.schindelin@xxxxxx>
- Subject: [PATCH 0/1] difftool: fix a use-after-free bug
It has been reported previously that the base_dir recorded at the
beginning of run_dir_diff() may go stale due to the buffer to which it
points potentially being realloc()ed.
This bug has been fixed in Git for Windows 2.12.2(2) already. It took me
this long (!!!) to come up with a reliable test case... But now that I
have it, it can be easily verified.
Johannes Schindelin (1):
difftool: fix use-after-free
builtin/difftool.c | 7 +++++--
t/t7800-difftool.sh | 19 +++++++++++++++++++
2 files changed, 24 insertions(+), 2 deletions(-)
Fetch-It-Via: git fetch https://github.com/dscho/git fix-difftool-d-crash-v1