summaryrefslogtreecommitdiff
path: root/t/t7505-prepare-commit-msg-hook.sh
diff options
context:
space:
mode:
authorLibravatar Michael Haggerty <mhagger@alum.mit.edu>2014-03-13 10:19:08 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-03-13 10:57:48 -0700
commit2f29e0c6fa5d312c4e0675b0dd23d3126b9f55fa (patch)
tree9fdd08d73367ffe80b4d0f403ee8c42d65115d53 /t/t7505-prepare-commit-msg-hook.sh
parentcheckout_entry(): use the strbuf throughout the function (diff)
downloadtgif-2f29e0c6fa5d312c4e0675b0dd23d3126b9f55fa.tar.xz
entry.c: fix possible buffer overflow in remove_subtree()
remove_subtree() manipulated path in a fixed-size buffer even though the length of the input, let alone the length of entries within the directory, were not known in advance. Change the function to take a strbuf argument and use that object as its scratch space. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7505-prepare-commit-msg-hook.sh')
0 files changed, 0 insertions, 0 deletions