fuzzer: use raw oid data

The indexer expects raw oid data, provide it.
This commit is contained in:
Edward Thomson
2022-01-27 15:19:09 -05:00
parent 71049b4a47
commit f882140577

View File

@@ -94,7 +94,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
fprintf(stderr, "Failed to compute the SHA1 hash\n");
abort();
}
if (git_indexer_append(indexer, &oid, sizeof(oid), &stats) < 0) {
if (git_indexer_append(indexer, &oid.id, GIT_OID_RAWSZ, &stats) < 0) {
goto cleanup;
}
}