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

Re: [PATCH] Prevent users from adding the file that has all-zero SHA-1

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Sep 20, 2011, 06:25 UTC
Message-ID
<CALkWK0n9kJtUPrpxTmtfH7kVd7CksULjt7bo3cFhOrS_NBVbMw@mail.gmail.com>
In-Reply-To
<1316259574-1291-1-git-send-email-pclouds@gmail.com>
Hi Nguyễn,
Nguyễn Thái Ngọc Duy writes:
> This particular SHA-1 has special meaning to git, very much like NULL
> in C. If a user adds a file that has this SHA-1, unexpected things can
> happen.
> [...]
Interesting patch.  Is it possible to write some sort of testcase?
-- Ram
Previous: Nguyen Thai Ngoc DuyNext: Nguyen Thai Ngoc Duy
Message 4 of 5 in “Prevent users from adding the file that has all-zero SHA-1”
  1. Prevent users from adding the file that has all-zero SHA-1Nguyễn Thái Ngọc Duy, Sep 17, 2011
  2. Mikael MagnussonSep 18, 2011
  3. Nguyen Thai Ngoc DuySep 19, 2011
  4. Ramkumar RamachandraSep 20, 2011
  5. Nguyen Thai Ngoc DuySep 20, 2011

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.