mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 02:56:17 +00:00
oid: give oids a type
`git_oid`s now have a type, and we require the oid type when creating the object id from creation functions.
This commit is contained in:
@@ -37,7 +37,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
||||
git_commit_graph_entry e;
|
||||
git_str commit_graph_buf = GIT_STR_INIT;
|
||||
unsigned char hash[GIT_HASH_SHA1_SIZE];
|
||||
git_oid oid = {{0}};
|
||||
git_oid oid = GIT_OID_NONE;
|
||||
bool append_hash = false;
|
||||
|
||||
if (size < 4)
|
||||
|
||||
@@ -36,7 +36,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
||||
git_midx_entry e;
|
||||
git_str midx_buf = GIT_STR_INIT;
|
||||
unsigned char hash[GIT_HASH_SHA1_SIZE];
|
||||
git_oid oid = {{0}};
|
||||
git_oid oid = GIT_OID_NONE;
|
||||
bool append_hash = false;
|
||||
|
||||
if (size < 4)
|
||||
|
||||
Reference in New Issue
Block a user