diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-03-24 15:31:15 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-03-24 15:31:15 -0700 |
commit | 2a5643da732b70004920f75efa1ebdc2a6ed1689 (patch) | |
tree | 145937f2d3fb693771715732cd9f7d34e8941f60 /builtin-pack-objects.c | |
parent | 0abd52772bcb82a7293bb1c2bd351fbe303abaf1 (diff) | |
parent | e8bd78c3fcba35b8344ea6bab6218b793e507ea3 (diff) | |
download | git-2a5643da732b70004920f75efa1ebdc2a6ed1689.tar.gz |
Merge branch 'maint-1.6.0' into maint-1.6.1
* maint-1.6.0:
close_sha1_file(): make it easier to diagnose errors
avoid possible overflow in delta size filtering computation
Diffstat (limited to 'builtin-pack-objects.c')
-rw-r--r-- | builtin-pack-objects.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c index 7079fab7db..7234d76f6e 100644 --- a/builtin-pack-objects.c +++ b/builtin-pack-objects.c @@ -1293,7 +1293,7 @@ static int try_delta(struct unpacked *trg, struct unpacked *src, max_size = trg_entry->delta_size; ref_depth = trg->depth; } - max_size = max_size * (max_depth - src->depth) / + max_size = (uint64_t)max_size * (max_depth - src->depth) / (max_depth - ref_depth + 1); if (max_size == 0) return 0; |