summaryrefslogtreecommitdiff
path: root/t/t7002-grep.sh
diff options
context:
space:
mode:
authorLibravatar Christian Couder <chriscool@tuxfamily.org>2009-03-27 01:13:01 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-03-27 01:10:27 -0700
commitb09b868f7fee689483d00bea3d52c0f14a80386c (patch)
treec2d78825b88e34ce66b4b48e3642151297233dd3 /t/t7002-grep.sh
parentformat-patch: --numbered-files and --stdout aren't mutually exclusive (diff)
downloadtgif-b09b868f7fee689483d00bea3d52c0f14a80386c.tar.xz
log-tree: fix patch filename computation in "git format-patch"
When using "git format-patch", "get_patch_filename" in "log-tree.c" calls "strbuf_splice" that could die with the following message: "`pos + len' is too far after the end of the buffer" if you have: buf->len < start_len + FORMAT_PATCH_NAME_MAX but: buf->len + suffix_len > start_len + FORMAT_PATCH_NAME_MAX This patch tries to get rid of that bug. [jc: w/ simplified logic] Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7002-grep.sh')
0 files changed, 0 insertions, 0 deletions