git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v2 0/2] name-hash: fix buffer overrun

From
Ggit@jeffhostetler.com <git@jeffhostetler.com>
Date
Apr 3, 2017, 15:16 UTC
Message-ID
<20170403151642.2889-1-git@jeffhostetler.com>
From: Jeff Hostetler <jeffhost@microsoft.com>

Version 2 of this fix smashes the HT and chmod issues in the test code discussed on the mailing list. The test has also been updated to skip on 1 cpu systems.

================ 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.

Jeff Hostetler (1):
  test-online-cpus: helper to return cpu count
Kevin Willford (1):
  name-hash: fix buffer overrun
 Makefile                                |  1 +
 name-hash.c                             |  4 +++-
 t/helper/.gitignore                     |  1 +
 t/helper/test-online-cpus.c             |  8 ++++++++
 t/t3008-ls-files-lazy-init-name-hash.sh | 27 +++++++++++++++++++++++++++
 5 files changed, 40 insertions(+), 1 deletion(-)
 create mode 100644 t/helper/test-online-cpus.c
 create mode 100755 t/t3008-ls-files-lazy-init-name-hash.sh
-- 
2.9.3
Next: git@jeffhostetler.com
Message 1 of 5 in “name-hash: fix buffer overrun”
  1. 0/2 name-hash: fix buffer overrungit@jeffhostetler.com, Apr 3, 2017
  2. 1/2 test-online-cpus: helper to return cpu countgit@jeffhostetler.com, Apr 3, 2017
  3. Ramsay JonesApr 4, 2017
  4. 2/2 name-hash: fix buffer overrungit@jeffhostetler.com, Apr 3, 2017
  5. Junio C HamanoApr 13, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.