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

C# / Java "use after free" #55

Open
jadamcrain opened this issue Apr 9, 2021 · 0 comments
Open

C# / Java "use after free" #55

jadamcrain opened this issue Apr 9, 2021 · 0 comments
Labels
enhancement New feature or request gen-dotnet .NET generator issue gen-java Java generator issue

Comments

@jadamcrain
Copy link
Member

Classes that have public close or Dispose methods, i.e. manual_destroy(), allow the class to be used after is is freed.

The cost of synchronizing access to all public methods and the release method would be pretty low. They could throw an exception if already freed.

@jadamcrain jadamcrain added enhancement New feature or request gen-dotnet .NET generator issue gen-java Java generator issue labels Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gen-dotnet .NET generator issue gen-java Java generator issue
Projects
None yet
Development

No branches or pull requests

1 participant