summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e0b0830)
raw | patch | inline | side by side (parent: e0b0830)
author | Nicolas Pitre <nico@cam.org> | |
Wed, 18 Oct 2006 19:56:22 +0000 (15:56 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 19 Oct 2006 04:18:42 +0000 (21:18 -0700) |
Supposing that both the base and result sizes were both full size 64-bit
values, their encoding would occupy only 9.2 bytes each. Therefore
inflating 64 bytes is way overkill. Limit it to 20 bytes instead which
should be plenty enough for a couple years to come.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
values, their encoding would occupy only 9.2 bytes each. Therefore
inflating 64 bytes is way overkill. Limit it to 20 bytes instead which
should be plenty enough for a couple years to come.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
sha1_file.c | patch | blob | history |
diff --git a/sha1_file.c b/sha1_file.c
index 716aef33e3a28039a8659d77d6797dc183730643..47e2a29abd6d2ae067d72c0f73bcf4e6afe0a938 100644 (file)
--- a/sha1_file.c
+++ b/sha1_file.c
if (sizep) {
const unsigned char *data;
- unsigned char delta_head[64];
+ unsigned char delta_head[20];
unsigned long result_size;
z_stream stream;
int st;