Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/odb.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ int git_odb_hashfile(git_oid *out, const char *path, git_otype type)
return git__throw(GIT_EOSERR, "'%s' appears to be corrupted", path);
}

hdr_len = format_object_header(hdr, sizeof(hdr), size, type);
hdr_len = format_object_header(hdr, sizeof(hdr), (size_t)size, type);
if (hdr_len < 0)
return git__throw(GIT_ERROR, "Failed to format blob header. Length is out of bounds");

Expand Down