Re: [PATCH] git-remote: do not use user input in a printf format string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux