Skip to content

[mono][jit] Emit a null check when storing to valuetype fields. (#82663) #1781

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

Merged
merged 1 commit into from
Jun 14, 2023

Conversation

UnityAlex
Copy link
Collaborator

  • [mono][jit] Emit a null check when storing to valuetype fields.

Fixes dotnet/runtime#82535.

  • Should this pull request have release notes?
    • Yes
    • No
  • Do these changes need to be back ported?
    • Yes
    • No
  • Do these changes need to be upstreamed to mono/mono or dotnet/runtime repositories?
    • Yes
    • No

Reviewers: please consider these questions as well! ❤️

Release notes

Fixed UUM-27537 @UnityAlex :
Mono: Fixed crash when attempting to access a field of a null valuetype object.

Backports
2023.1, 2022.3, 2021.3

* [mono][jit] Emit a null check when storing to valuetype fields.

Fixes dotnet/runtime#82535.

* Add a test.

* Disable the test on coreclr.
@UnityAlex UnityAlex requested a review from joncham June 13, 2023 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mono: Crash when accessing a field of a null class object
3 participants