]> git.ipfire.org Git - thirdparty/git.git/commit
oss-fuzz/commit-graph: set up hash algorithm
authorPatrick Steinhardt <ps@pks.im>
Tue, 7 May 2024 04:53:40 +0000 (06:53 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 7 May 2024 05:50:50 +0000 (22:50 -0700)
commit781ba69d8bc1b0733eb502a2c247d5aebc2ef66d
tree506914921494984ea43da351769498b50d0a60b3
parent373bfa6077e76d0b4e8078bc216114dffe3ba430
oss-fuzz/commit-graph: set up hash algorithm

Our fuzzing setups don't work in a proper repository, but only use the
in-memory configured `the_repository`. Consequently, we never go through
the full repository setup procedures and thus do not set up the hash
algo used by the repository.

The commit-graph fuzzer does rely on a properly initialized hash algo
though. Initialize it explicitly.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
oss-fuzz/fuzz-commit-graph.c