summaryrefslogtreecommitdiff
path: root/prompt.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2015-09-24 17:05:51 -0400
committerJunio C Hamano <gitster@pobox.com>2015-09-25 10:18:18 -0700
commit1d895f194ff612057989f477dc106aa1c7ac2016 (patch)
tree702f98d6f9fa41d51f0c61038800ffc41a0c1eba /prompt.h
parentc1fd0809174a31edd17e97c1161e01907f41a4fc (diff)
downloadgit-1d895f194ff612057989f477dc106aa1c7ac2016.tar.gz
mailsplit: make PATH_MAX buffers dynamic
There are several PATH_MAX-sized buffers in mailsplit, along with some questionable uses of sprintf. These are not really of security interest, as local mailsplit pathnames are not typically under control of an attacker, and you could generally only overflow a few numbers at the end of a path that approaches PATH_MAX (a longer path would choke mailsplit long before). But it does not hurt to be careful, and as a bonus we lift some limits for systems with too-small PATH_MAX varibles. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'prompt.h')
0 files changed, 0 insertions, 0 deletions