]> git.ipfire.org Git - thirdparty/git.git/commit
t5608: add regression test for >4GB object clone
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 8 May 2026 08:16:44 +0000 (08:16 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 9 May 2026 02:25:32 +0000 (11:25 +0900)
commit4b220cafbe1804a757537c3f17487b2f3e9a8a93
treee5b9bf97791f6d9ef06ae296550379593dc516dc
parent438886aecb7546e6c5ba68cf1afd7535136f8bb4
t5608: add regression test for >4GB object clone

The shift overflow bug in index-pack and unpack-objects caused incorrect
object size calculation when the encoded size required more than 32 bits
of shift. This would result in corrupted or failed unpacking of objects
larger than 4GB.

Add a test that creates a pack file containing a 4GB+ blob using the
new 'test-tool synthesize pack --reachable-large' command, then clones
the repository to verify the fix works correctly.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5608-clone-2gb.sh