]> git.ipfire.org Git - thirdparty/git.git/commit - diff-delta.c
diff-delta: fix encoding size that would not fit in "unsigned int"
authorMartin Koegler <martin.koegler@chello.at>
Thu, 10 Aug 2017 07:01:01 +0000 (09:01 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 10 Aug 2017 20:55:22 +0000 (13:55 -0700)
commit3f0a67a1f68d79f102ac11a8b6e7a72dc86be613
tree2ee68e38eb7c55ba837e05750c4ee2b5a42a7696
parent4274c698f46a9bc45834c4904e7e113450c042fb
diff-delta: fix encoding size that would not fit in "unsigned int"

The current delta code produces incorrect pack objects for files > 4GB,
because the size is copied from size_t field to "unsigned int" variables
during the encoding process.

Signed-off-by: Martin Koegler <martin.koegler@chello.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff-delta.c