[prev in list] [next in list] [prev in thread] [next in thread] 

List:       git
Subject:    Re: [PATCH] git-remote: do not use user input in a printf format
From:       Johannes Schindelin <Johannes.Schindelin () gmx ! de>
Date:       2008-09-22 12:41:20
Message-ID: alpine.DEB.1.00.0809221440590.13830 () pacific ! mpi-cbg ! de ! mpi-cbg ! de
[Download RAW message or body]

Hi,

On Mon, 22 Sep 2008, Johannes Sixt wrote:

> '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.

Thanks,
Dscho

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic