diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-10-07 16:27:54 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-10-07 16:27:54 +0900 |
commit | 98c03a0de83f5b5a98ac25d5639f647559c0e619 (patch) | |
tree | c28f2bc0c760defc3fc39f5c6768100072bd2adc /http-push.c | |
parent | cfa0fd0ffc7ae5edcef0615e49b995f3699c07eb (diff) | |
parent | 2944a94c6b74d3941f63d1f4eee5bdfbbf5cd400 (diff) | |
download | git-98c03a0de83f5b5a98ac25d5639f647559c0e619.tar.gz |
Merge branch 'tg/memfixes'
Fixes for a handful memory access issues identified by valgrind.
* tg/memfixes:
sub-process: use child_process.args instead of child_process.argv
http-push: fix construction of hex value from path
path.c: fix uninitialized memory access
Diffstat (limited to 'http-push.c')
-rw-r--r-- | http-push.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/http-push.c b/http-push.c index d860c477c6..493ee7d719 100644 --- a/http-push.c +++ b/http-push.c @@ -1018,7 +1018,7 @@ static int get_oid_hex_from_objpath(const char *path, struct object_id *oid) memcpy(hex, path, 2); path += 2; path++; /* skip '/' */ - memcpy(hex, path, GIT_SHA1_HEXSZ - 2); + memcpy(hex + 2, path, GIT_SHA1_HEXSZ - 2); return get_oid_hex(hex, oid); } |