Re: [PATCH] diff.c: Ensure "index $from..$to" line contains unambiguous SHA1s
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- May 30, 2010, 19:58 UTC
- Message-ID
- <201005302158.40314.j6t@kdbg.org>
- In-Reply-To
- <201005301537.18039.johan@herland.net>
On Sonntag, 30. Mai 2010, Johan Herland wrote:
Show 10 quoted lines
> +cat >expect_initial <<EOF > +100644 blob 51d2738463ea4ca66f8691c91e33ce64b7d41bb1 foo > +EOF > + > +cat >expect_update <<EOF > +100644 blob 51d2738efb4ad8a1e40bed839ab8e116f0a15e47 foo > +EOF > + > +test_expect_success 'setup' ' > + echo 4827 > foo &&
...
> + echo 11742 > foo &&
How the fscking hell did you find these two simple values that are an almost-SHA1-collision? It's easier to hit the jackpot!?!
-- Hannes