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

[release/7.0] [mono][loader] Set status on success #80951

Merged
merged 1 commit into from
Feb 8, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jan 20, 2023

Backport of #80949 to release/7.0

/cc @lambdageek

Customer Impact

Customers using Microsoft.Android may experience sporadic crashes at app startup or during assembly loading due to an uninitialized variable.

Testing

Manual testing

Risk

Low. We now initialize the variable.

IMPORTANT: Is this backport for a servicing release? If so and this change touches code that ships in a NuGet package, please make certain that you have added any necessary package authoring and gotten it explicitly reviewed.

Emebedders that call `mono_assembly_load_from_full` may observe a
non-NULL return value and an uninitialized MonoImageOpenStatus, which
may lead to incorrect diagnostics in code like:

```
MonoImageOpenStatus status;
MonoAssembly *assembly = mono_assembly_load_from_full (image, name,
status, refonly);
if (!assembly || status != MONO_IMAGE_OK) {
   fprintf(stderr, "Failure due to: %s\n", mono_image_strerror (status));
   abort();
}
```
Which will print `Failure due to: Internal error`

Addresses dotnet/android#7658
@lambdageek lambdageek added the Servicing-consider Issue for next servicing release review label Jan 20, 2023
@lambdageek lambdageek added this to the 7.0.x milestone Jan 20, 2023
@rbhanda rbhanda added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Jan 24, 2023
@rbhanda rbhanda modified the milestones: 7.0.x, 7.0.4 Jan 24, 2023
@carlossanlop
Copy link
Member

Approved by Tactics for 7.0.4.
Signed off by area owners.
No OOB changes needed.
CI failure unrelated to #81544
Ready to merge. :shipit:

@carlossanlop carlossanlop merged commit c50038c into release/7.0 Feb 8, 2023
@carlossanlop carlossanlop deleted the backport/pr-80949-to-release/7.0 branch February 8, 2023 23:33
@ghost ghost locked as resolved and limited conversation to collaborators Mar 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-VM-meta-mono Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants