diff options
author | Steffen Prohaska <prohaska@zib.de> | 2014-09-21 12:03:26 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-09-22 12:40:55 -0700 |
commit | 9079ab7cb6768fa04e086303f90be043b423cca4 (patch) | |
tree | 9bc4b152b3a8b5ba3f4d81f64e4994b2c9373b46 /contrib/subtree/git-subtree.txt | |
parent | convert: stream from fd to required clean filter to reduce used address space (diff) | |
download | tgif-9079ab7cb6768fa04e086303f90be043b423cca4.tar.xz |
sha1_file: don't convert off_t to size_t too early to avoid potential die()
xsize_t() checks if an off_t argument can be safely converted to
a size_t return value. If the check is executed too early, it could
fail for large files on 32-bit architectures even if the size_t code
path is not taken. Other paths might be able to handle the large file.
Specifically, index_stream_convert_blob() is able to handle a large file
if a filter is configured that returns a small result.
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/subtree/git-subtree.txt')
0 files changed, 0 insertions, 0 deletions