diff options
author | Jeff King <peff@peff.net> | 2015-09-24 17:05:48 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-09-25 10:18:18 -0700 |
commit | c1fd0809174a31edd17e97c1161e01907f41a4fc (patch) | |
tree | 31191c73a687b308391c621faa6a3e66b441527f /po | |
parent | add reentrant variants of sha1_to_hex and find_unique_abbrev (diff) | |
download | tgif-c1fd0809174a31edd17e97c1161e01907f41a4fc.tar.xz |
fsck: use strbuf to generate alternate directories
When fsck-ing alternates, we make a copy of the alternate
directory in a fixed PATH_MAX buffer. We memcpy directly,
without any check whether we are overflowing the buffer.
This is OK if PATH_MAX is a true representation of the
maximum path on the system, because any path here will have
already been vetted by the alternates subsystem. But that is
not true on every system, so we should be more careful.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'po')
0 files changed, 0 insertions, 0 deletions