Skip to content

wasip3: Fix zero-length reads/writes on streams#792

Merged
alexcrichton merged 1 commit intoWebAssembly:mainfrom
alexcrichton:zero-length-read
Apr 22, 2026
Merged

wasip3: Fix zero-length reads/writes on streams#792
alexcrichton merged 1 commit intoWebAssembly:mainfrom
alexcrichton:zero-length-read

Conversation

@alexcrichton
Copy link
Copy Markdown
Collaborator

Previously this trapped internally due to state not getting lined up right and/or returned the wrong result. Now this tries to follow posix and not actually do any I/O for zero-length reads/writes.

Previously this trapped internally due to state not getting lined up
right and/or returned the wrong result. Now this tries to follow posix
and not actually do any I/O for zero-length reads/writes.
@alexcrichton alexcrichton requested a review from dicej April 21, 2026 20:20
@alexcrichton alexcrichton merged commit 6629886 into WebAssembly:main Apr 22, 2026
33 checks passed
@alexcrichton alexcrichton deleted the zero-length-read branch April 22, 2026 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants