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

Fix conversion of void* to OBJECTREF #110426

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

AaronRobinsonMSFT
Copy link
Member

Fixes #110394

The blind cast from a void* to an OBJECTREF can create "invalid" object refs. This is a limitation of the OBJECTREF validation system. In this case, using the proper helper function fixes the problem.

@AaronRobinsonMSFT AaronRobinsonMSFT merged commit 06a8404 into dotnet:main Dec 5, 2024
85 of 90 checks passed
@AaronRobinsonMSFT AaronRobinsonMSFT deleted the runtime_110394 branch December 5, 2024 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AF Thread::IsObjRefValid(&objref) in RuntimeMethodHandle_InvokeMethod
2 participants