summaryrefslogtreecommitdiff
path: root/t/t1013/objects/7a/37b887a73791d12d26c0d3e39568a8fb0fa6e8
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2014-07-01 20:00:01 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-07-01 13:30:50 -0700
commit80b47854ca84abec991f6fff42dbeb6626588b87 (patch)
tree62faef6ccfe864c56ce4842a26ccfe100053f7b5 /t/t1013/objects/7a/37b887a73791d12d26c0d3e39568a8fb0fa6e8
parentGit 1.8.5.5 (diff)
downloadtgif-80b47854ca84abec991f6fff42dbeb6626588b87.tar.xz
sha1_file: avoid overrunning alternate object base string
While checking if a new alternate object database is a duplicate make sure that old and new base paths have the same length before comparing them with memcmp. This avoids overrunning the buffer of the existing entry if the new one is longer and it stops rejecting foobar/ after foo/ was already added. Signed-off-by: Rene Scharfe <ls.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1013/objects/7a/37b887a73791d12d26c0d3e39568a8fb0fa6e8')
0 files changed, 0 insertions, 0 deletions