]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'ps/reftable-hardening' into jch
authorJunio C Hamano <gitster@pobox.com>
Tue, 30 Jun 2026 19:59:13 +0000 (12:59 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Jun 2026 19:59:14 +0000 (12:59 -0700)
commitdb58c70be09037412b41dd23eb8bede1f10b90be
tree53031d8aab5033259b9a1c92cfaaca82e9d21549
parent1fd470fe65ecb0dcc76c4a6d36b398c7681f8ff0
parentf4e163f4f622b9beb0cc842909c8ffd976182036
Merge branch 'ps/reftable-hardening' into jch

The reftable code has been hardened against corrupted tables by
fixing out-of-bounds writes, out-of-bounds reads, and abort calls
during parsing.

* ps/reftable-hardening:
  reftable/table: fix OOB read on truncated table
  reftable/table: fix NULL pointer access when seeking to bogus offsets
  reftable/block: fix OOB read with bogus restart offset
  reftable/block: fix use of uninitialized memory when binsearch fails
  reftable/block: fix OOB read with bogus restart count
  reftable/block: fix OOB read with bogus block size
  reftable/block: fix OOB write with bogus inflated log size
  t/unit-tests: introduce test helper to write reftable blocks
  reftable/record: don't abort when decoding invalid ref value type
  reftable/basics: fix OOB read on binary search of empty range
  oss-fuzz: add fuzzer for parsing reftables
  meson: support building fuzzers with libFuzzer
Makefile
meson.build
meson_options.txt
t/unit-tests/u-reftable-table.c