mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 13:04:42 +00:00
path: use GITERR_CHECK_ALLOC_BUF to verify passed in buffer
This commit is contained in:
parent
859ed5ddc7
commit
42c05ed56b
@ -705,8 +705,7 @@ int git_path_resolve_relative(git_buf *path, size_t ceiling)
|
||||
char *base, *to, *from, *next;
|
||||
size_t len;
|
||||
|
||||
if (!path || git_buf_oom(path))
|
||||
return -1;
|
||||
GITERR_CHECK_ALLOC_BUF(path);
|
||||
|
||||
if (ceiling > path->size)
|
||||
ceiling = path->size;
|
||||
|
Loading…
Reference in New Issue
Block a user