summaryrefslogtreecommitdiff
path: root/t/test9200b.png
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2011-12-08 03:43:19 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-12-09 23:17:00 -0800
commit5914f2d057c259668695bccab8e9bec3a4bead53 (patch)
tree998cf2587a2906b486905d101826723ac2a476b0 /t/test9200b.png
parentMerge branch 'maint-1.7.4' into maint-1.7.5 (diff)
downloadtgif-5914f2d057c259668695bccab8e9bec3a4bead53.tar.xz
fetch: create status table using strbuf
When we fetch from a remote, we print a status table like: From url * [new branch] foo -> origin/foo We create this table in a static buffer using sprintf. If the remote refnames are long, they can overflow this buffer and smash the stack. Instead, let's use a strbuf to build the string. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/test9200b.png')
0 files changed, 0 insertions, 0 deletions