diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-08-17 09:27:08 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-08-17 09:27:08 -0700 |
| commit | e2889596bed4482c1b5ceaf3947d1aa01222b51e (patch) | |
| tree | b64781b4b57d091063149d5333d5261f1dd6a2c5 /oss-fuzz | |
| parent | Merge branch 'ds/doc-count-objects-fix' into next (diff) | |
| parent | commit-graph: stop passing in redundant repository (diff) | |
| download | git-e2889596bed4482c1b5ceaf3947d1aa01222b51e.tar.gz git-e2889596bed4482c1b5ceaf3947d1aa01222b51e.zip | |
Merge branch 'ps/commit-graph-wo-globals' into next
Remove dependency on the_repository and other globals from the
commit-graph code, and other changes unrelated to de-globaling.
* ps/commit-graph-wo-globals:
commit-graph: stop passing in redundant repository
commit-graph: stop using `the_repository`
commit-graph: stop using `the_hash_algo`
commit-graph: refactor `parse_commit_graph()` to take a repository
commit-graph: store the hash algorithm instead of its length
commit-graph: stop using `the_hash_algo` via macros
Diffstat (limited to 'oss-fuzz')
| -rw-r--r-- | oss-fuzz/fuzz-commit-graph.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/oss-fuzz/fuzz-commit-graph.c b/oss-fuzz/fuzz-commit-graph.c index fbb77fec19..fb8b8787a4 100644 --- a/oss-fuzz/fuzz-commit-graph.c +++ b/oss-fuzz/fuzz-commit-graph.c @@ -4,9 +4,6 @@ #include "commit-graph.h" #include "repository.h" -struct commit_graph *parse_commit_graph(struct repo_settings *s, - void *graph_map, size_t graph_size); - int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size); int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) @@ -22,9 +19,10 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) * possible. */ repo_set_hash_algo(the_repository, GIT_HASH_SHA1); + the_repository->settings.initialized = 1; the_repository->settings.commit_graph_generation_version = 2; the_repository->settings.commit_graph_changed_paths_version = 1; - g = parse_commit_graph(&the_repository->settings, (void *)data, size); + g = parse_commit_graph(the_repository, (void *)data, size); repo_clear(the_repository); free_commit_graph(g); |
