aboutsummaryrefslogtreecommitdiff
path: root/contrib/hooks/setgitperms.perl
diff options
context:
space:
mode:
authorJohannes Sixt <johannes.sixt@telecom.at>2008-09-22 13:03:25 +0200
committerJunio C Hamano <gitster@pobox.com>2008-09-22 09:35:58 -0700
commit79bbc7fb078f8cabe04020c4619be9b571371398 (patch)
treebacda71c02d7e42cc96d2a3f1704b988f9cbaef7 /contrib/hooks/setgitperms.perl
parentcc185a6a8ac24737a26ec4b40cc401c2db8b2e97 (diff)
downloadgit-79bbc7fb078f8cabe04020c4619be9b571371398.tar.gz
git-79bbc7fb078f8cabe04020c4619be9b571371398.tar.xz
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 'contrib/hooks/setgitperms.perl')
0 files changed, 0 insertions, 0 deletions