All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] difftool: fix a use-after-free bug
@ 2017-04-13 19:21 Johannes Schindelin
  2017-04-13 19:21 ` [PATCH 1/1] difftool: fix use-after-free Johannes Schindelin
  0 siblings, 1 reply; 3+ messages in thread
From: Johannes Schindelin @ 2017-04-13 19:21 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano, Gergely Nagy, Aaron Teague, jeremyhu

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(-)


base-commit: cf11a67975b057a144618badf16dc4e3d25b9407
Published-As: https://github.com/dscho/git/releases/tag/fix-difftool-d-crash-v1
Fetch-It-Via: git fetch https://github.com/dscho/git fix-difftool-d-crash-v1

-- 
2.12.2.windows.2.1.g7df5db8d31e


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-04-13 22:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-13 19:21 [PATCH 0/1] difftool: fix a use-after-free bug Johannes Schindelin
2017-04-13 19:21 ` [PATCH 1/1] difftool: fix use-after-free Johannes Schindelin
2017-04-13 22:01   ` Jonathan Nieder

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.