Skip to content

Commit

Permalink
Auto merge of rust-lang#3720 - safinaskar:read, r=RalfJung
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bors committed Jul 10, 2024
2 parents 50fb5d5 + 3c80ab7 commit 189cb02
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 189cb02

Please sign in to comment.