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