Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always flush when writing, even if we get invalid pointers #731

Merged
merged 1 commit into from
Aug 28, 2019

Conversation

MarkMcCaskey
Copy link
Contributor

Not exactly an "invalid pointer" but, we were seeing an iovec of length 0 passed in which was causing __WASI_EFAULT which was preventing things from flushing properly.

While I was fixing this, I decided to clean it up and make the behavior more obvious by creating a wrapper function.

@MarkMcCaskey MarkMcCaskey added the 📦 lib-wasi About wasmer-wasi label Aug 28, 2019
@MarkMcCaskey
Copy link
Contributor Author

bors r+

bors bot added a commit that referenced this pull request Aug 28, 2019
731: Always flush when writing, even if we get invalid pointers r=MarkMcCaskey a=MarkMcCaskey

Not exactly an "invalid pointer" but, we were seeing an iovec of length 0 passed in which was causing `__WASI_EFAULT` which was preventing things from flushing properly.

While I was fixing this, I decided to clean it up and make the behavior more obvious by creating a wrapper function.

Co-authored-by: Mark McCaskey <[email protected]>
@bors bors bot merged commit 6767087 into master Aug 28, 2019
@bors bors bot deleted the fix/flushing-stdout branch August 28, 2019 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 lib-wasi About wasmer-wasi
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants