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 memory corruption bug in virtual static method dispatch #107763

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

davidwrighton
Copy link
Member

  • Use TypeHandle::CanCastTo instead of MethodTable::CanCastTo
    • The issue is that the MethodTable api requires cooperative mode, and the TypeHandle supports either mode

Fixes #107754

- Use `TypeHandle::CanCastTo` instead of `MethodTable::CanCastTo`
  - The issue is that the `MethodTable` api requires cooperative mode, and the `TypeHandle` supports either mode

Fixes dotnet#107754
@davidwrighton
Copy link
Member Author

/backport to release/9.0

Copy link
Contributor

Started backporting to release/9.0: https://github.com/dotnet/runtime/actions/runs/10840819320

jtschuster pushed a commit to jtschuster/runtime that referenced this pull request Sep 17, 2024
…07763)

- Use `TypeHandle::CanCastTo` instead of `MethodTable::CanCastTo`
  - The issue is that the `MethodTable` api requires cooperative mode, and the `TypeHandle` supports either mode

Fixes dotnet#107754
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants