summaryrefslogtreecommitdiff
path: root/builtin/mktree.c
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2018-06-10 12:56:31 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-06-14 08:56:35 -0700
commit9da2d0379ea0220dd670d70b8af571a2a09b3c12 (patch)
tree73d0ddfd46a7b5c7d4f127fcb6db887ddc5e4385 /builtin/mktree.c
parentmerge-recursive: ensure we write updates for directory-renamed file (diff)
downloadtgif-9da2d0379ea0220dd670d70b8af571a2a09b3c12.tar.xz
merge-recursive: use xstrdup() instead of fixed buffer
Paths can be longer than PATH_MAX. Avoid a buffer overrun in check_dir_renamed() by using xstrdup() to make a private copy safely. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/mktree.c')
0 files changed, 0 insertions, 0 deletions