Skip to content

Commit e95a390

Browse files
authored
Merge pull request #1017 from Unity-Technologies/unity-master-bug-1065895
Don't try to access metadata for dynamic method (case 1065895)
2 parents ae5feb8 + 987b670 commit e95a390

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mono/metadata/loader.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2159,6 +2159,10 @@ mono_method_get_marshal_info (MonoMethod *method, MonoMarshalSpec **mspecs)
21592159
return;
21602160
}
21612161

2162+
/* dynamic method added to non-dynamic image */
2163+
if (method->dynamic)
2164+
return;
2165+
21622166
mono_class_init (klass);
21632167

21642168
methodt = &klass->image->tables [MONO_TABLE_METHOD];

0 commit comments

Comments
 (0)