summaryrefslogtreecommitdiff
path: root/fuzzers
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2022-01-22 17:34:36 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2022-01-27 20:15:09 -0500
commit70d9bfa47c14fd230d081cebb9933622136479ea (patch)
tree426d3940897f7a41303c03790bb84492e1bda45b /fuzzers
parentd2458af7b7227f0b378e1509d7dfeb958c339590 (diff)
downloadlibgit2-70d9bfa47c14fd230d081cebb9933622136479ea.tar.gz
packbuilder: use the packfile name instead of hash
Deprecate the `git_packfile_hash` function. Callers should use the new `git_packfile_name` function which provides a unique packfile name.
Diffstat (limited to 'fuzzers')
-rw-r--r--fuzzers/packfile_fuzzer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fuzzers/packfile_fuzzer.c b/fuzzers/packfile_fuzzer.c
index 8667cb9c5..6002fa1de 100644
--- a/fuzzers/packfile_fuzzer.c
+++ b/fuzzers/packfile_fuzzer.c
@@ -101,13 +101,13 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
if (git_indexer_commit(indexer, &stats) < 0)
goto cleanup;
- if (git_str_printf(&path, "pack-%s.idx", git_oid_tostr_s(git_indexer_hash(indexer))) < 0)
+ if (git_str_printf(&path, "pack-%s.idx", git_indexer_name(indexer)) < 0)
goto cleanup;
p_unlink(git_str_cstr(&path));
git_str_clear(&path);
- if (git_str_printf(&path, "pack-%s.pack", git_oid_tostr_s(git_indexer_hash(indexer))) < 0)
+ if (git_str_printf(&path, "pack-%s.pack", git_indexer_name(indexer)) < 0)
goto cleanup;
p_unlink(git_str_cstr(&path));