Skip to content

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

Merged
UnityAlex merged 1 commit intounity-mainfrom
fix-uum-27537
Jun 14, 2023
Merged

[mono][jit] Emit a null check when storing to valuetype fields. (#82663)#1781
UnityAlex merged 1 commit intounity-mainfrom
fix-uum-27537

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