diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-07-27 19:31:53 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-27 19:31:53 +0900 |
| commit | 1361b02c9fc9a96ab4baf82994a0f1b29beff41a (patch) | |
| tree | eed3fc7fa7f630874736473322c393e0f0961e44 /src/libstd/sys/windows/stack_overflow.rs | |
| parent | 1841fb97e17f5e41c609cd11ab114c7ac1f3de2a (diff) | |
| parent | 7a5d3abfb1aa3a38e0b3b3508c760fc8e712226c (diff) | |
| download | rust-1361b02c9fc9a96ab4baf82994a0f1b29beff41a.tar.gz rust-1361b02c9fc9a96ab4baf82994a0f1b29beff41a.zip | |
Rollup merge of #74088 - tmiasko:write-all-vectored-empty, r=KodrAus
Avoid writes without any data in `Write::write_all_vectored` Previously, when non-empty sequence of empty IoSlices have been provided to `Write::write_all_vectored`, the buffers would be written as is with `Write::write_vectored` and subsequently the return value `Ok(0)` would be misinterpreted as an error. Avoid writes without any data by advancing the buffers first. This matches the documented behaviour of `Write::write_all_vectored` and is analogous to what happens in `Write::write_all`.
Diffstat (limited to 'src/libstd/sys/windows/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
