Files
git/builtin
Jeff King aaa07e3eee show-branch: use strbuf instead of static buffer
When we generate relative names (e.g., "master~20^2"), we
format the name into a static buffer, then xstrdup the
result to attach it to the commit. Since the first thing we
add into the static buffer is the already-computed name of
the child commit, the names may get longer and longer as
the traversal gets deeper, and we may eventually overflow
the fixed-size buffer.

Fix this by converting the fixed-size buffer into a dynamic
strbuf.  The performance implications should be minimal, as
we end up allocating a heap copy of the name anyway (and now
we can just detach the heap copy from the strbuf).

Reported-by: Eric Roman <eroman@chromium.org>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2013-04-06 18:57:15 -07:00
..
2012-09-14 11:53:53 -07:00
2012-09-12 14:08:05 -07:00
2012-09-17 15:59:34 -07:00
2012-09-27 17:57:26 -07:00
2012-09-11 11:36:05 -07:00
2012-09-14 11:53:53 -07:00
2012-09-07 11:09:09 -07:00
2012-11-26 13:27:45 -08:00