diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2022-01-22 17:34:36 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2022-01-23 09:48:20 -0500 |
commit | 69ca594bafd438fea419b1ebe757a9d13da4d254 (patch) | |
tree | b7b760bb90311ee4cd511d697d54c1ff8a1d97a8 /fuzzers/packfile_fuzzer.c | |
parent | 55eb096b93d4e658bfc0d19270b56f00dff9ec0d (diff) | |
download | libgit2-ethomson/oid_cleanups.tar.gz |
packbuilder: use the packfile name instead of hashethomson/oid_cleanups
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/packfile_fuzzer.c')
-rw-r--r-- | fuzzers/packfile_fuzzer.c | 4 |
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)); |