diff options
| author | Askar Safin <safinaskar@gmail.com> | 2024-06-29 04:18:51 +0300 |
|---|---|---|
| committer | Askar Safin <safinaskar@gmail.com> | 2024-07-09 22:54:59 +0300 |
| commit | ea7c1366b5c11e7da7cdd9b1ceb9e5b9c2912351 (patch) | |
| tree | f8627b34225af1b77010f705e4920e6e1e2786c5 /compiler/rustc_pattern_analysis/src/errors.rs | |
| parent | c4715893e56ca6190c4212752ef7f78fd7834b80 (diff) | |
| download | rust-ea7c1366b5c11e7da7cdd9b1ceb9e5b9c2912351.tar.gz rust-ea7c1366b5c11e7da7cdd9b1ceb9e5b9c2912351.zip | |
Fix libc::read shim: make it write to a buffer correct amount of bytes. Add tests for the 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_pattern_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
