Skip to content

wasi-tls: enforce the check-write permit in the p2 output stream - #15058

Open
xia-chao wants to merge 1 commit into
bytecodealliance:mainfrom
xia-chao:wasi-tls-write-permit
Open

xia-chao wants to merge 1 commit into
bytecodealliance:mainfrom
xia-chao:wasi-tls-write-permit

Conversation

@xia-chao

Copy link
Copy Markdown
Contributor

The TLS output stream let a write go past the permit returned by check-write. It traps now.

check-write is what tells a guest how much it can write without blocking, so a write above that number has to trap instead of being accepted.

@xia-chao
xia-chao requested a review from a team as a code owner October 29, 2026 13:17
@xia-chao
xia-chao requested review from rvolosatovs and removed request for a team October 29, 2026 13:18
Writes over the permitted size now trap instead of being accepted, and a
test program covers it.
@xia-chao
xia-chao force-pushed the wasi-tls-write-permit branch from 59ada10 to b6c1d0c Compare October 31, 2026 14:20
@xia-chao
xia-chao requested a review from a team as a code owner October 31, 2026 14:20
@xia-chao
xia-chao requested review from cfallin and removed request for a team October 31, 2026 14:20

This branch has not been deployed

No deployments
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.

1 participant