diff options
author | René Scharfe <l.s.r@web.de> | 2017-05-06 17:13:56 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-05-08 02:12:42 (GMT) |
commit | 57e0ef0e0e90c4cb72c35db874fc3d035b88ce4d (patch) | |
tree | 5d18c963265442be4c33623c6cafdd9b9013fd56 /mailmap.h | |
parent | 79e913c24aa37d0ede9ed9e8962a19634ae5129a (diff) | |
download | git-57e0ef0e0e90c4cb72c35db874fc3d035b88ce4d.zip git-57e0ef0e0e90c4cb72c35db874fc3d035b88ce4d.tar.gz git-57e0ef0e0e90c4cb72c35db874fc3d035b88ce4d.tar.bz2 |
am: 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.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'mailmap.h')
0 files changed, 0 insertions, 0 deletions