]> git.lizzy.rs Git - rust.git/commit
Auto merge of #31825 - ollie27:win_lfs, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 23 Feb 2016 14:09:35 +0000 (14:09 +0000)
committerbors <bors@rust-lang.org>
Tue, 23 Feb 2016 14:09:35 +0000 (14:09 +0000)
commit0de3cace0a213f4fd4d843f59638c8be71354335
tree477b06e366fff2a21a2e9a374d5908db72b580a5
parent6ffd7cd1664b70fed34861df3957ddee87ec9ad1
parentb340f2535277a562e3b9ec8d9bb0033a41f72bb8
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.