summaryrefslogtreecommitdiff
path: root/fuzzers/objects_fuzzer.c
diff options
context:
space:
mode:
Diffstat (limited to 'fuzzers/objects_fuzzer.c')
-rw-r--r--fuzzers/objects_fuzzer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fuzzers/objects_fuzzer.c b/fuzzers/objects_fuzzer.c
index 51b4a1ed4..7294e9b35 100644
--- a/fuzzers/objects_fuzzer.c
+++ b/fuzzers/objects_fuzzer.c
@@ -39,7 +39,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
* to do.
*/
for (i = 0; i < ARRAY_SIZE(types); i++) {
- if (git_object__from_raw(&object, (const char *) data, size, types[i]) < 0)
+ if (git_object__from_raw(&object, (const char *) data, size, types[i], GIT_OID_SHA1) < 0)
continue;
git_object_free(object);
object = NULL;