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

handle.IsClosed Checks #289

Merged

Conversation

martindevans
Copy link
Contributor

Some previous relevant discussion: #288 (comment)

The handles in wasmtime-dotnet never seem to be made invalid, so the IsInvalid checks seem to be useless. I've added IsClosed checks onto all the places that IsInvalid is used.

Previously all these paths were untested, added new tests which cover these paths.

… protects against accessing various things after they have been disposed.
Copy link
Member

@peterhuene peterhuene left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this!

@peterhuene peterhuene merged commit 6b926f8 into bytecodealliance:main Jan 2, 2024
6 checks passed
@martindevans martindevans deleted the handle.IsClosed_checks branch January 2, 2024 21:32
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