summaryrefslogtreecommitdiff
path: root/url.h
diff options
context:
space:
mode:
authorLibravatar Nguyễn Thái Ngọc Duy <pclouds@gmail.com>2013-10-24 08:55:35 +0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-10-24 14:58:37 -0700
commitfd356f6aa8bb75ebef56fbc61caf7e02517fa6d3 (patch)
treee2851336dfb92b96bad2201baf9131f64c4704be /url.h
parentgit-merge: document the -S option (diff)
downloadtgif-fd356f6aa8bb75ebef56fbc61caf7e02517fa6d3.tar.xz
entry.c: convert checkout_entry to use strbuf
The old code does not do boundary check so any paths longer than PATH_MAX can cause buffer overflow. Replace it with strbuf to handle paths of arbitrary length. The OS may reject if the path is too long though. But in that case we report the cause (e.g. name too long) and usually move on to checking out the next entry. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'url.h')
0 files changed, 0 insertions, 0 deletions