mirror of
https://git.proxmox.com/git/libgit2
synced 2025-07-21 04:46:27 +00:00
Ignore ref oid terminator
This commit is contained in:
parent
e60af90498
commit
28e0068172
10
src/refs.c
10
src/refs.c
@ -180,16 +180,6 @@ static int loose_parse_oid(git_oid *oid, git_buf *file_content)
|
|||||||
if (git_oid_fromstr(oid, buffer) < 0)
|
if (git_oid_fromstr(oid, buffer) < 0)
|
||||||
goto corrupt;
|
goto corrupt;
|
||||||
|
|
||||||
buffer = buffer + GIT_OID_HEXSZ;
|
|
||||||
if (*buffer == '\r')
|
|
||||||
buffer++;
|
|
||||||
|
|
||||||
if (*buffer == '\n')
|
|
||||||
buffer++;
|
|
||||||
|
|
||||||
if (*buffer != '\0')
|
|
||||||
goto corrupt;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
corrupt:
|
corrupt:
|
||||||
|
Loading…
Reference in New Issue
Block a user