Commit dde1bb3
[metadata_update] Fix bounds check error
The issue is that the STANDALONESIG bounds check was using a 0-based index, and
mono_metadata_bounds_check_slow was compensating by adding 1.
But that made another call to the bounds check fail: in
mono_class_from_typeref_checked we passed a 1-based index. So in the case
where a TypeRef was using the last AssemblyRef in a delta, the bound check
would fail.
Fixes #49227
Co-authored-by: Ryan Lucia <[email protected]>1 parent f7de865 commit dde1bb3
2 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
973 | 973 | | |
974 | 974 | | |
975 | 975 | | |
| 976 | + | |
976 | 977 | | |
977 | 978 | | |
978 | 979 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1000 | 1000 | | |
1001 | 1001 | | |
1002 | 1002 | | |
| 1003 | + | |
1003 | 1004 | | |
1004 | 1005 | | |
| 1006 | + | |
| 1007 | + | |
1005 | 1008 | | |
1006 | 1009 | | |
1007 | 1010 | | |
| |||
1011 | 1014 | | |
1012 | 1015 | | |
1013 | 1016 | | |
1014 | | - | |
| 1017 | + | |
| 1018 | + | |
1015 | 1019 | | |
1016 | 1020 | | |
1017 | 1021 | | |
| |||
4779 | 4783 | | |
4780 | 4784 | | |
4781 | 4785 | | |
4782 | | - | |
| 4786 | + | |
4783 | 4787 | | |
4784 | 4788 | | |
4785 | 4789 | | |
| |||
0 commit comments