aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Basic/VirtualFileSystemTest.cpp
diff options
context:
space:
mode:
authorOwen Reynolds <gbreynoo@gmail.com>2018-08-06 16:21:41 +0000
committerOwen Reynolds <gbreynoo@gmail.com>2018-08-06 16:21:41 +0000
commita489d1115887067370e23a3b5d4af7a42c81aa0c (patch)
tree575c3f7028cd48cd2cccf884d4e5af86c6ac1807 /clang/unittests/Basic/VirtualFileSystemTest.cpp
parentc03642e9a86d9ed128676d5405a1906282d727ad (diff)
downloadllvm-a489d1115887067370e23a3b5d4af7a42c81aa0c.zip
llvm-a489d1115887067370e23a3b5d4af7a42c81aa0c.tar.gz
llvm-a489d1115887067370e23a3b5d4af7a42c81aa0c.tar.bz2
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 llvm-svn: 339027
Diffstat (limited to 'clang/unittests/Basic/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions