commit | 5b8a7e263c136ec2af6dbc65af38b927e4a2eb03 | [log] [tgz] |
---|---|---|
author | Owen Reynolds <gbreynoo@gmail.com> | Mon Aug 06 16:21:41 2018 +0000 |
committer | Owen Reynolds <gbreynoo@gmail.com> | Mon Aug 06 16:21:41 2018 +0000 |
tree | 144489039f57f78406e7270a9b5ae6739c827011 | |
parent | 273374717eb3fe2fe19a0f85e7505172caa99d7d [diff] |
Fix raw_fd_ostream::write_impl hang due to an infinite loop with large output On windows when raw_fd_ostream::write_impl calls write, a 32 bit input is required for character count. As a variable with size_t is used for this argument, on x64 integral demotion occurs. In the case of large files an infinite loop follows. See: https://bugs.llvm.org/show_bug.cgi?id=37926 This fix allows the output of files larger than the previous int32 limit. Differential Revision: https://reviews.llvm.org/D48948 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@339027 91177308-0d34-0410-b5e6-96231b3b80d8