about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-02-23 14:09:35 +0000
committerbors <bors@rust-lang.org>2016-02-23 14:09:35 +0000
commit0de3cace0a213f4fd4d843f59638c8be71354335 (patch)
tree477b06e366fff2a21a2e9a374d5908db72b580a5 /src/libstd/sys/unix/stack_overflow.rs
parent6ffd7cd1664b70fed34861df3957ddee87ec9ad1 (diff)
parentb340f2535277a562e3b9ec8d9bb0033a41f72bb8 (diff)
downloadrust-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