Skip to content

Commit f882140

Browse files
committed
fuzzer: use raw oid data
The indexer expects raw oid data, provide it.
1 parent 71049b4 commit f882140

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fuzzers/packfile_fuzzer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
9494
fprintf(stderr, "Failed to compute the SHA1 hash\n");
9595
abort();
9696
}
97-
if (git_indexer_append(indexer, &oid, sizeof(oid), &stats) < 0) {
97+
if (git_indexer_append(indexer, &oid.id, GIT_OID_RAWSZ, &stats) < 0) {
9898
goto cleanup;
9999
}
100100
}

0 commit comments

Comments
 (0)