From: Junio C Hamano Date: Mon, 23 Oct 2023 20:56:36 +0000 (-0700) Subject: Merge branch 'jk/chunk-bounds' X-Git-Tag: v2.43.0-rc0~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f32af12ceec1c19d8a8a7874523d3a7ceef6eebf;p=thirdparty%2Fgit.git Merge branch 'jk/chunk-bounds' The codepaths that read "chunk" formatted files have been corrected to pay attention to the chunk size and notice broken files. * jk/chunk-bounds: (21 commits) t5319: make corrupted large-offset test more robust chunk-format: drop pair_chunk_unsafe() commit-graph: detect out-of-order BIDX offsets commit-graph: check bounds when accessing BIDX chunk commit-graph: check bounds when accessing BDAT chunk commit-graph: bounds-check generation overflow chunk commit-graph: check size of generations chunk commit-graph: bounds-check base graphs chunk commit-graph: detect out-of-bounds extra-edges pointers commit-graph: check size of commit data chunk midx: check size of revindex chunk midx: bounds-check large offset chunk midx: check size of object offset chunk midx: enforce chunk alignment on reading midx: check size of pack names chunk commit-graph: check consistency of fanout table midx: check size of oid lookup chunk commit-graph: check size of oid fanout chunk midx: stop ignoring malformed oid fanout chunk t: add library for munging chunk-format files ... --- f32af12ceec1c19d8a8a7874523d3a7ceef6eebf diff --cc t/t5324-split-commit-graph.sh index 8a9720dcb0,3c8482d073..97eb6d2e72 --- a/t/t5324-split-commit-graph.sh +++ b/t/t5324-split-commit-graph.sh @@@ -1,9 -1,8 +1,10 @@@ #!/bin/sh test_description='split commit graph' + +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh + . "$TEST_DIRECTORY"/lib-chunk.sh GIT_TEST_COMMIT_GRAPH=0 GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS=0