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

[CoreCLR] UnsafeAccessorAttribute: Missing static modifier check for field #88858

Closed
fanyang-mono opened this issue Jul 13, 2023 · 2 comments
Closed
Assignees
Labels
area-VM-coreclr disabled-test The test is disabled in source code against the issue
Milestone

Comments

@fanyang-mono
Copy link
Member

CoreCLR missed the check for when UnsafeAccessorKind is set to Field, the corresponding field shouldn't be static and vice/versa.

A new testcase was added in #88626 and it failed on CoreCLR.

Re-enable test: Verify_InvalidTargetUnsafeAccessor upon fixing this issue.

@AaronRobinsonMSFT
Copy link
Member

I believe this is an issue in the newly added test. See https://github.com/dotnet/runtime/pull/88626/files#r1262953624

@AaronRobinsonMSFT
Copy link
Member

Closing based on #88626 (comment)

@ghost ghost locked as resolved and limited conversation to collaborators Aug 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-VM-coreclr disabled-test The test is disabled in source code against the issue
Projects
None yet
Development

No branches or pull requests

2 participants