Skip to content

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

Merged
carlossanlop merged 1 commit into
release/7.0from
backport/pr-80949-to-release/7.0
Feb 8, 2023
Merged

[release/7.0] [mono][loader] Set status on success#80951
carlossanlop merged 1 commit into
release/7.0from
backport/pr-80949-to-release/7.0

Conversation

@github-actions

@github-actionsgithub-actionsBot commented Jan 20, 2023

Copy link
Copy Markdown
Contributor

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
@ghostghost added the area-VM-meta-mono label Jan 20, 2023
@lambdageeklambdageek added the Servicing-consider Issue for next servicing release review label Jan 20, 2023
@lambdageeklambdageek added this to the 7.0.x milestone Jan 20, 2023
@rbhandarbhanda added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Jan 24, 2023
@rbhandarbhanda modified the milestones: 7.0.x, 7.0.4Jan 24, 2023
@carlossanlop

Copy link
Copy Markdown
Contributor

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.0Feb 8, 2023
@carlossanlop
carlossanlop deleted the backport/pr-80949-to-release/7.0 branch February 8, 2023 23:33
@ghostghost locked as resolved and limited conversation to collaborators Mar 11, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-VM-meta-monoServicing-approvedApproved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@carlossanlop@vargaz@lambdageek@rbhanda