1
0
mirror of https://github.com/git/git.git synced 2025-03-29 12:35:02 +00:00
git/builtin
Jeff King 5914f2d057 fetch: create status table using strbuf
When we fetch from a remote, we print a status table like:

  From url
   * [new branch]   foo -> origin/foo

We create this table in a static buffer using sprintf. If
the remote refnames are long, they can overflow this buffer
and smash the stack.

Instead, let's use a strbuf to build the string.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-12-09 23:17:00 -08:00
..
2011-03-09 23:52:57 -08:00
2011-03-09 23:52:57 -08:00
2011-03-22 10:16:54 -07:00
2011-03-22 11:43:27 -07:00
2011-04-03 10:14:53 -07:00
2011-03-22 10:16:54 -07:00
2011-03-22 10:16:54 -07:00
2011-03-22 10:16:54 -07:00
2011-03-22 10:16:54 -07:00
2011-03-23 14:55:46 -07:00
2011-03-09 23:52:56 -08:00
2011-04-01 17:55:55 -07:00
2011-03-22 10:16:54 -07:00
2011-03-22 10:16:54 -07:00
2011-03-22 10:16:54 -07:00
2011-04-01 17:55:55 -07:00
2011-03-22 11:43:27 -07:00
2011-03-22 10:16:54 -07:00
2011-04-01 17:55:55 -07:00
2011-05-16 13:01:45 -07:00
2011-03-09 23:52:56 -08:00
2011-03-09 23:52:58 -08:00
2011-04-01 17:55:55 -07:00
2011-03-22 10:16:54 -07:00
2011-03-22 10:16:54 -07:00