summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-12-17 10:43:30 -0800
committerJunio C Hamano <gitster@pobox.com>2013-12-17 10:43:30 -0800
commitc235d960cb32ddca352d12c3f8dc053ddfd421dd (patch)
tree5c9edd349b4a6cfcbf77ca30b47c15933114b62b /commit.c
parentd7aced95cd681b761468635f8d2a8b82d7ed26fd (diff)
downloadgit-c235d960cb32ddca352d12c3f8dc053ddfd421dd.tar.gz
prune-packed: use strbuf to avoid having to worry about PATH_MAX
A/very/long/path/to/.git that becomes exactly PATH_MAX bytes long after suffixed with /objects/??/??38-hex??, would have overflown the on-stack pathname[] buffer. Noticed-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions