git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH] name-hash: fix buffer overrun
@ 2017-03-31 17:32 git
  2017-03-31 17:32 ` git
  0 siblings, 1 reply; 11+ messages in thread
From: git @ 2017-03-31 17:32 UTC (permalink / raw)
  To: git; +Cc: gitster, peff, kewill, Jeff Hostetler

From: Jeff Hostetler <jeffhost@microsoft.com>

Fix buffer overrun in handle_range_dir() when the final entry
in the index was the only file in the last directory, such as
"a/b/foo.txt". The look ahead (k_start + 1) was invalid since
(k_start + 1) == k_end.

This bug was introduced by Jeff in "jh/memihash-opt" which was
recently merged into master.

Kevin Willford (1):
  name-hash: fix buffer overrun

 name-hash.c                             |  4 +++-
 t/t3008-ls-files-lazy-init-name-hash.sh | 19 +++++++++++++++++++
 2 files changed, 22 insertions(+), 1 deletion(-)
 create mode 100644 t/t3008-ls-files-lazy-init-name-hash.sh

-- 
2.9.3


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

end of thread, other threads:[~2017-04-02 16:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-31 17:32 [PATCH] name-hash: fix buffer overrun git
2017-03-31 17:32 ` git
2017-03-31 19:35   ` Junio C Hamano
2017-03-31 21:18     ` Junio C Hamano
2017-03-31 23:18       ` Junio C Hamano
2017-04-01  4:12         ` Junio C Hamano
2017-04-01 12:12           ` Johannes Schindelin
2017-04-01 18:16             ` Junio C Hamano
2017-04-01  4:14         ` [PATCH] contrib/git-resurrect.sh: do not write \t for HT in sed scripts Junio C Hamano
2017-04-02  9:58           ` Jakub Narębski
2017-04-02 16:46             ` Junio C Hamano

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).