subotac opened PR #14077 from subotac:fix/stdin-over-read to bytecodealliance:main:
Fixes #14065.
Avoid using
std::io::Stdin's process-global buffer in the stdin worker because it can advance redirected seekable input beyond the number of bytes requested by a guest.Use unbuffered OS reads on Unix and non-console Windows input while retaining
StdinLockto preserve serialization with other process users. Add a subprocess regression test that reads one byte and verifies that the
shared file offset advances by exactly one byte.
subotac requested dicej for a review on PR #14077.
subotac requested wasmtime-wasi-reviewers for a review on PR #14077.
github-actions[bot] added the label wasi on PR #14077.
:thumbs_up: pchickey submitted PR review.
pchickey added PR #14077 Fix stdin over-read on seekable inputs to the merge queue.
:check: pchickey merged PR #14077.
pchickey removed PR #14077 Fix stdin over-read on seekable inputs from the merge queue.
Last updated: Aug 30 2026 at 09:07 UTC