diff options
author | Jeff King <peff@peff.net> | 2016-10-22 00:59:38 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-10-24 09:59:29 -0700 |
commit | 6bdb0083be3b42aab5dfa6bf18b447623704f7f5 (patch) | |
tree | 8ce693e1356f617774d9abf28e27e7bf34a58968 /entry.c | |
parent | Git 2.8.4 (diff) | |
download | tgif-6bdb0083be3b42aab5dfa6bf18b447623704f7f5.tar.xz |
daemon: detect and reject too-long paths
When we are checking the path via path_ok(), we use some
fixed PATH_MAX buffers. We write into them via snprintf(),
so there's no possibility of overflow, but it does mean we
may silently truncate the path, leading to potentially
confusing errors when the partial path does not exist.
We're better off to reject the path explicitly.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'entry.c')
0 files changed, 0 insertions, 0 deletions