Skip to content

handle.IsClosed Checks#289

Merged
peterhuene merged 1 commit into
bytecodealliance:mainfrom
martindevans:handle.IsClosed_checks
Jan 2, 2024
Merged

handle.IsClosed Checks#289
peterhuene merged 1 commit into
bytecodealliance:mainfrom
martindevans:handle.IsClosed_checks

Conversation

@martindevans
Copy link
Copy Markdown
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
Copy Markdown
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
@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