diff options
| author | bors <bors@rust-lang.org> | 2024-07-10 10:55:24 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-07-10 10:55:24 +0000 |
| commit | 6f65362b08325418034b7e485692d636bfdd30e9 (patch) | |
| tree | 15f1cf25e5cd8ef8eae987f85c76a258c22571ef /compiler/rustc_mir_transform/src | |
| parent | f50b0b861ae24a34d6cd25d16a428917b06756ff (diff) | |
| parent | ea7c1366b5c11e7da7cdd9b1ceb9e5b9c2912351 (diff) | |
| download | rust-6f65362b08325418034b7e485692d636bfdd30e9.tar.gz rust-6f65362b08325418034b7e485692d636bfdd30e9.zip | |
Auto merge of #3720 - safinaskar:read, r=RalfJung
Fix libc::read shim: make it write to a buffer correct amount of bytes. Add tests for new behavior libc::read shim had a bug: if underlying real call libc::read(fd, buf, N) returns M, then libc::read shim writes N bytes to buf instead of M. Remaining N - M bytes are filled with zeros. This commit fixes this bug and adds tests for new behavior
Diffstat (limited to 'compiler/rustc_mir_transform/src')
0 files changed, 0 insertions, 0 deletions
