Merge branch 'bc/racy-4gb-files'
commit5edbcead426056b54286499149244ae4cbf8b5f7
authorJunio C Hamano <gitster@pobox.com>
Mon, 23 Oct 2023 20:56:37 +0000 (23 13:56 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Oct 2023 20:56:37 +0000 (23 13:56 -0700)
treeea98f4a8da0ff289aa9a87ff2c28893b05d6f8c6
parent626f689f7903b51342cf31ad3792ba5e9e41586d
parent5143ac07b17e2b025865378fce24cc11ac7bf8b1
Merge branch 'bc/racy-4gb-files'

The index file has room only for lower 32-bit of the file size in
the cached stat information, which means cached stat information
will have 0 in its sd_size member for a file whose size is multiple
of 4GiB.  This is mistaken for a racily clean path.  Avoid it by
storing a bogus sd_size value instead for such files.

* bc/racy-4gb-files:
  Prevent git from rehashing 4GiB files
  t: add a test helper to truncate files
Makefile
t/helper/test-tool.c
t/helper/test-tool.h