]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'jk/chunk-bounds'
authorJunio C Hamano <gitster@pobox.com>
Mon, 23 Oct 2023 20:56:36 +0000 (13:56 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Oct 2023 20:56:36 +0000 (13:56 -0700)
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
  ...

1  2 
commit-graph.c
pack-revindex.c
t/t5324-split-commit-graph.sh
t/t5328-commit-graph-64bit-time.sh

diff --cc commit-graph.c
Simple merge
diff --cc pack-revindex.c
Simple merge
index 8a9720dcb05a54e53a9c0fdb83faf61da72c1972,3c8482d073d13913c818881360db39aaf7516aec..97eb6d2e72bac5c3936965c269ff9bfa56d87568
@@@ -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
Simple merge