From: Johannes Sixt Date: Sun, 30 May 2010 19:58:40 GMT Subject: Re: [PATCH] diff.c: Ensure "index $from..$to" line contains unambiguous SHA1s Message-ID: <201005302158.40314.j6t@kdbg.org> In-Reply-To: <201005301537.18039.johan@herland.net> On Sonntag, 30. Mai 2010, Johan Herland wrote: > +cat >expect_initial < +100644 blob 51d2738463ea4ca66f8691c91e33ce64b7d41bb1 foo > +EOF > + > +cat >expect_update < +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