diff options
author | René Scharfe <l.s.r@web.de> | 2017-05-06 19:13:52 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-05-08 11:12:09 +0900 |
commit | 79e913c24aa37d0ede9ed9e8962a19634ae5129a (patch) | |
tree | 0ea3f3c69c978b7b07a5dc83dd8f4d8594a5e1a9 /t/t3425-rebase-topology-merges.sh | |
parent | Prepare for 2.12.3 (diff) | |
download | tgif-79e913c24aa37d0ede9ed9e8962a19634ae5129a.tar.xz |
checkout: check return value of resolve_refdup before using hash
If resolve_refdup() fails it returns NULL and possibly leaves its hash
output parameter untouched. Make sure to use it only if the function
succeeded, in order to avoid accessing uninitialized memory.
Found with t/t2011-checkout-invalid-head.sh --valgrind.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3425-rebase-topology-merges.sh')
0 files changed, 0 insertions, 0 deletions