mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-20 13:41:23 +00:00
fileops: fix invalid read
This commit is contained in:
parent
4878ea4568
commit
2da72fb21c
@ -320,7 +320,7 @@ int git_futils_mkdir(
|
||||
min_root_len = git_path_root(make_path.ptr);
|
||||
if (root < min_root_len)
|
||||
root = min_root_len;
|
||||
while (make_path.ptr[root] == '/')
|
||||
while (root >= 0 && make_path.ptr[root] == '/')
|
||||
++root;
|
||||
|
||||
/* clip root to make_path length */
|
||||
|
Loading…
Reference in New Issue
Block a user