diff options
author | Johannes Sixt <johannes.sixt@telecom.at> | 2008-09-22 13:03:25 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-09-22 09:35:58 -0700 |
commit | 79bbc7fb078f8cabe04020c4619be9b571371398 (patch) | |
tree | bacda71c02d7e42cc96d2a3f1704b988f9cbaef7 /builtin-log.c | |
parent | Start draft release notes for 1.6.0.3 (diff) | |
download | tgif-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 'builtin-log.c')
0 files changed, 0 insertions, 0 deletions