summaryrefslogtreecommitdiff
path: root/Documentation/git-quiltimport.txt
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2015-08-19 14:12:45 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-09-04 09:36:51 -0700
commit5015f01c12a45a1042c1aa6b6f7f6b62bfa00ade (patch)
tree755efbbdd95dc999a763d163d4627570a678f7b1 /Documentation/git-quiltimport.txt
parentnotes: use a strbuf in add_non_note (diff)
downloadtgif-5015f01c12a45a1042c1aa6b6f7f6b62bfa00ade.tar.xz
read_info_alternates: handle paths larger than PATH_MAX
This function assumes that the relative_base path passed into it is no larger than PATH_MAX, and writes into a fixed-size buffer. However, this path may not have actually come from the filesystem; for example, add_submodule_odb generates a path using a strbuf and passes it in. This is hard to trigger in practice, though, because the long submodule directory would have to exist on disk before we would try to open its info/alternates file. We can easily avoid the bug, though, by simply creating the filename on the heap. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-quiltimport.txt')
0 files changed, 0 insertions, 0 deletions