diff options
author | Junio C Hamano <gitster@pobox.com> | 2024-07-08 23:53:09 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-07-08 23:53:10 +0200 |
commit | ecf7fc600a5218c9ee3863ee70d5a6e312164f30 (patch) | |
tree | bcea9bd3948c998759ea848ee55592ac1e1f8a16 /oss-fuzz | |
parent | Merge branch 'db/date-underflow-fix' (diff) | |
parent | bloom: introduce `deinit_bloom_filters()` (diff) | |
download | git-ecf7fc600a5218c9ee3863ee70d5a6e312164f30.tar.xz git-ecf7fc600a5218c9ee3863ee70d5a6e312164f30.zip |
Merge branch 'tb/path-filter-fix'
The Bloom filter used for path limited history traversal was broken
on systems whose "char" is unsigned; update the implementation and
bump the format version to 2.
* tb/path-filter-fix:
bloom: introduce `deinit_bloom_filters()`
commit-graph: reuse existing Bloom filters where possible
object.h: fix mis-aligned flag bits table
commit-graph: new Bloom filter version that fixes murmur3
commit-graph: unconditionally load Bloom filters
bloom: prepare to discard incompatible Bloom filters
bloom: annotate filters with hash version
repo-settings: introduce commitgraph.changedPathsVersion
t4216: test changed path filters with high bit paths
t/helper/test-read-graph: implement `bloom-filters` mode
bloom.h: make `load_bloom_filter_from_graph()` public
t/helper/test-read-graph.c: extract `dump_graph_info()`
gitformat-commit-graph: describe version 2 of BDAT
commit-graph: ensure Bloom filters are read with consistent settings
revision.c: consult Bloom filters for root commits
t/t4216-log-bloom.sh: harden `test_bloom_filters_not_used()`
Diffstat (limited to 'oss-fuzz')
-rw-r--r-- | oss-fuzz/fuzz-commit-graph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oss-fuzz/fuzz-commit-graph.c b/oss-fuzz/fuzz-commit-graph.c index 951c9c082f..fbb77fec19 100644 --- a/oss-fuzz/fuzz-commit-graph.c +++ b/oss-fuzz/fuzz-commit-graph.c @@ -23,7 +23,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) */ repo_set_hash_algo(the_repository, GIT_HASH_SHA1); the_repository->settings.commit_graph_generation_version = 2; - the_repository->settings.commit_graph_read_changed_paths = 1; + the_repository->settings.commit_graph_changed_paths_version = 1; g = parse_commit_graph(&the_repository->settings, (void *)data, size); repo_clear(the_repository); free_commit_graph(g); |