| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There exists a possibility where the klass being passed to try_prepare_objaddr_callvirt_optimization is not legit. This can result in unpredictable crashes. To fix, we pass the MonoType and flush out the MonoClass by calling mono_class_from_mono_type_internal. Fixes #109111
|
Tagging subscribers to this area: @lambdageek, @steveisok |
Sorry, something went wrong.
There was a problem hiding this comment.
lgtm. we will take for consideration in 9.0.x
Sorry, something went wrong.
|
/ba-g Known infra related errors |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Backport of #109381 to release/9.0-staging
/cc @steveisok
Customer Impact
A customer was experiencing intermittent crashes with their android app around mono_method_to_ir. After testing multiple iterations, we found there were times when calls to try_prepare_objaddr_callvirt_optimization contained a null reference to a MonoClass. As a result, the app would crash.
To fix, we made a call to mono_class_from_mono_type_internal to make sure we would get a legit MonoClass.
Regression
[If yes, specify when the regression was introduced. Provide the PR or commit if known.]
Testing
Manual before and after. After app did not crash.
Risk
Low
IMPORTANT: If this backport is for a servicing release, please verify that:
The PR target branch is release/X.0-staging, not release/X.0.
If the change touches code that ships in a NuGet package, you have added the necessary package authoring and gotten it explicitly reviewed.