Commit 29eae42
authored
[release/9.0-staging] [android] Fix crash in method_to_ir (#109510)
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 d31f394 commit 29eae42
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5757 | 5757 | | |
5758 | 5758 | | |
5759 | 5759 | | |
5760 | | - | |
| 5760 | + | |
5761 | 5761 | | |
| 5762 | + | |
| 5763 | + | |
| 5764 | + | |
5762 | 5765 | | |
5763 | 5766 | | |
5764 | 5767 | | |
| |||
7256 | 7259 | | |
7257 | 7260 | | |
7258 | 7261 | | |
7259 | | - | |
| 7262 | + | |
7260 | 7263 | | |
7261 | 7264 | | |
7262 | 7265 | | |
| |||
0 commit comments