Skip to content

Commit 32ff312

Browse files
committed
Get underlying method in case wrapper method is exposed to user code (case 1073634)
1 parent 39082ef commit 32ff312

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mono/metadata/icall.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1878,6 +1878,10 @@ ves_icall_System_Reflection_MonoMethodInfo_get_parameter_info (MonoMethod *metho
18781878
MonoClass *klass = NULL;
18791879
if (!MONO_HANDLE_IS_NULL (reftype))
18801880
klass = mono_class_from_mono_type (MONO_HANDLE_GETVAL (reftype, type));
1881+
1882+
/* UNITY: handle wrapper methods leaking into call stacks. case 1073634 */
1883+
method = mono_marshal_method_from_wrapper (method);
1884+
18811885
return mono_param_get_objects_internal (domain, method, klass, error);
18821886
}
18831887

0 commit comments

Comments
 (0)