diff options
| author | bors <bors@rust-lang.org> | 2016-02-23 14:09:35 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-02-23 14:09:35 +0000 |
| commit | 0de3cace0a213f4fd4d843f59638c8be71354335 (patch) | |
| tree | 477b06e366fff2a21a2e9a374d5908db72b580a5 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 6ffd7cd1664b70fed34861df3957ddee87ec9ad1 (diff) | |
| parent | b340f2535277a562e3b9ec8d9bb0033a41f72bb8 (diff) | |
| download | rust-0de3cace0a213f4fd4d843f59638c8be71354335.tar.gz rust-0de3cace0a213f4fd4d843f59638c8be71354335.zip | |
Auto merge of #31825 - ollie27:win_lfs, r=alexcrichton
`ReadFile` and `WriteFile` take a DWORD (u32) for the length argument which was erroneously cast from a usize causing truncation. This meant methods like `write_all` and `read_exact` would unexpectedly fail if given a buffer 4 GiB or larger. We can instead just ask for `u32::MAX` bytes if the given buffer is too big.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
