summaryrefslogtreecommitdiff
path: root/pack-write.c
diff options
context:
space:
mode:
authorJohannes Sixt <johannes.sixt@telecom.at>2008-09-22 11:03:25 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-09-22 16:35:58 (GMT)
commit79bbc7fb078f8cabe04020c4619be9b571371398 (patch)
treebacda71c02d7e42cc96d2a3f1704b988f9cbaef7 /pack-write.c
parentcc185a6a8ac24737a26ec4b40cc401c2db8b2e97 (diff)
downloadgit-79bbc7fb078f8cabe04020c4619be9b571371398.zip
git-79bbc7fb078f8cabe04020c4619be9b571371398.tar.gz
git-79bbc7fb078f8cabe04020c4619be9b571371398.tar.bz2
git-remote: do not use user input in a printf format string
'git remote show' substituted the remote name into a string that was later used as a printf format string. If a remote name contains a printf format specifier like this: $ git remote add foo%sbar . then the command $ git remote show foo%sbar would print garbage (if you are lucky) or crash. This fixes it. Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-write.c')
0 files changed, 0 insertions, 0 deletions