summaryrefslogtreecommitdiff
path: root/diff-no-index.c
diff options
context:
space:
mode:
authorSteffen Prohaska <prohaska@zib.de>2014-09-21 12:03:26 +0200
committerJunio C Hamano <gitster@pobox.com>2014-09-22 12:40:55 -0700
commit9079ab7cb6768fa04e086303f90be043b423cca4 (patch)
tree9bc4b152b3a8b5ba3f4d81f64e4994b2c9373b46 /diff-no-index.c
parent9035d75a2be9d80d82676504d69553245017f6d4 (diff)
downloadgit-9079ab7cb6768fa04e086303f90be043b423cca4.tar.gz
sha1_file: don't convert off_t to size_t too early to avoid potential die()sp/stream-clean-filter
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 'diff-no-index.c')
0 files changed, 0 insertions, 0 deletions