summaryrefslogtreecommitdiff
path: root/t/t2103-update-index-ignore-missing.sh
diff options
context:
space:
mode:
authorLibravatar Julian Phillips <julian@quantumfyre.co.uk>2009-11-13 21:25:56 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-11-14 16:03:06 -0800
commit95c96d48e65a597cfd2bf7228ddc8c7ca30b55b7 (patch)
tree22eda8e78a72863e9458d8c798e0b373f02d0daa /t/t2103-update-index-ignore-missing.sh
parentfetch: Speed up fetch of large numbers of refs (diff)
downloadtgif-95c96d48e65a597cfd2bf7228ddc8c7ca30b55b7.tar.xz
remote: fix use-after-free error detected by glibc in ref_remove_duplicates
In ref_remove_duplicates, when we encounter a duplicate and remove it from the list we need to make sure that the prev pointer stays pointing at the last entry and also skip over adding the just freed entry to the string_list. Previously fetch could crash with: *** glibc detected *** git: corrupted double-linked list: ... Also add a test to try and catch problems with duplicate removal in the future. Acked-by: Nicolas Pitre <nico@fluxnic.net> Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2103-update-index-ignore-missing.sh')
0 files changed, 0 insertions, 0 deletions