Commit c489a8c
authored
[release/8.0-staging] [android] Fix crash in method_to_ir (#109511)
Backport of #109381
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 #1091111 parent 77fba2f commit c489a8c
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5703 | 5703 | | |
5704 | 5704 | | |
5705 | 5705 | | |
5706 | | - | |
| 5706 | + | |
5707 | 5707 | | |
| 5708 | + | |
| 5709 | + | |
| 5710 | + | |
5708 | 5711 | | |
5709 | 5712 | | |
5710 | 5713 | | |
| |||
7129 | 7132 | | |
7130 | 7133 | | |
7131 | 7134 | | |
7132 | | - | |
| 7135 | + | |
7133 | 7136 | | |
7134 | 7137 | | |
7135 | 7138 | | |
| |||
0 commit comments