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

Fixes #1338 use after free with async, and fixes #1340 #1339

Merged
merged 6 commits into from Nov 21, 2022

Conversation

Xaeroxe
Copy link
Contributor

@Xaeroxe Xaeroxe commented Oct 7, 2022

Fixes #1338

EDIT: Now also fixes #1340

@Xaeroxe
Copy link
Contributor Author

Xaeroxe commented Oct 7, 2022

@Xaeroxe Xaeroxe force-pushed the fix-async-use-after-free branch 4 times, most recently from b15e902 to bc8bac4 Compare October 9, 2022 04:08
@Xaeroxe Xaeroxe force-pushed the fix-async-use-after-free branch 4 times, most recently from 7b33813 to 28b6d93 Compare October 15, 2022 00:49
@Xaeroxe
Copy link
Contributor Author

Xaeroxe commented Nov 11, 2022

@Brooooooklyn this is ready for review

@Xaeroxe
Copy link
Contributor Author

Xaeroxe commented Nov 11, 2022

I added a commit to this PR which implements my first solution for #1340

@Xaeroxe Xaeroxe changed the title Fixes #1338 use after free with async Fixes #1338 use after free with async, and fixes #1340 Nov 11, 2022
@Brooooooklyn
Copy link
Sponsor Member

@Xaeroxe thanks! I'll add some tests before I merge this

@Brooooooklyn
Copy link
Sponsor Member

@Xaeroxe I decide to allow mut ref with unsafe mark

@Xaeroxe
Copy link
Contributor Author

Xaeroxe commented Nov 21, 2022

Sure, that seems good to me

@Brooooooklyn Brooooooklyn merged commit 618d0f8 into napi-rs:main Nov 21, 2022
@Xaeroxe Xaeroxe deleted the fix-async-use-after-free branch November 22, 2022 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants