From: Junio C Hamano Date: Thu, 02 Jun 2005 22:47:21 GMT Subject: Re: [PATCH] Find size of SHA1 object without inflating everything. Message-ID: <7vis0w1ime.fsf@assigned-by-dhcp.cox.net> In-Reply-To: >>>>> "LT" == Linus Torvalds writes: LT> On Thu, 2 Jun 2005, Junio C Hamano wrote: >> >> +int sha1_file_size(const unsigned char *sha1, unsigned long *sizep) LT> ... >> + ret = unpack_sha1_header(&stream, map, mapsize, hdr, sizeof(hdr)); LT> ... >> + delta_data_head = unpack_sha1_rest(&stream, hdr, 200); LT> Why do you do this? Because I was not thinking when I wrote "char hdr[1024]". Nico pointed out the same problem and you have a fixed version of both in your mailbox.