From: Nguyễn Thái Ngọc Duy Date: Thu, 24 Oct 2013 01:55:35 +0000 (+0700) Subject: entry.c: convert checkout_entry to use strbuf X-Git-Tag: v1.8.5-rc0~4^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/fd356f6aa8bb75ebef56fbc61caf7e02517fa6d3?hp=fd356f6aa8bb75ebef56fbc61caf7e02517fa6d3 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 Signed-off-by: Junio C Hamano ---