From: Junio C Hamano Date: Mon, 22 Feb 2010 06:17:53 GMT Subject: Re: [PATCH] sha1_file: don't malloc the whole compressed result when writing out objects Message-ID: <7v8walyesu.fsf@alter.siamese.dyndns.org> In-Reply-To: Nicolas Pitre writes: > And what real life case would trigger this? Given the size of the > window for this to happen, what are your chances? > Of course the odds for me to be struck by lightning also exist. And if > I work really really hard at it then I might be able to trigger that > pathological case above even before the next thunderstorm. But in > practice I'm hardly concerned by either of those possibilities. The real life case for any of this triggers for me is zero, as I won't be mistreating git as a continuous & asynchronous back-up tool. But then that would make the whole discussion moot. There are people who file "bug reports" with an artificial reproduction recipe built around a loop that runs dd continuously overwriting a file while "git add" is asked to add it.