From: Junio C Hamano Date: Thu, 15 May 2014 16:37:50 GMT Subject: Re: [PATCH] run_diff_files: do not look at uninitialized stat data Message-ID: In-Reply-To: <20140514221306.GA5020@sigill.intra.peff.net> Jeff King writes: > Thanks for a thorough bug report. I was able to reproduce it. The > ... > -- >8 -- > Subject: run_diff_files: do not look at uninitialized stat data > ... > We can fix both by splitting the CE_VALID and regular code > paths, and making sure only to look at the stat information > in the latter. Furthermore, we push the declaration of our > "struct stat" down into the code paths that actually set it, > so we cannot accidentally access it uninitialized in future > code. > > Signed-off-by: Jeff King Thanks for an excellent work, as always. Will queue.