about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/errors.rs
diff options
context:
space:
mode:
authorAskar Safin <safinaskar@gmail.com>2024-06-29 04:18:51 +0300
committerAskar Safin <safinaskar@gmail.com>2024-07-09 22:54:59 +0300
commitea7c1366b5c11e7da7cdd9b1ceb9e5b9c2912351 (patch)
treef8627b34225af1b77010f705e4920e6e1e2786c5 /compiler/rustc_pattern_analysis/src/errors.rs
parentc4715893e56ca6190c4212752ef7f78fd7834b80 (diff)
downloadrust-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