Let GetTransparentProxy fail clean on load error (bug 36848)
authorAndi McClure <andi.mcclure@xamarin.com>
Tue, 15 Dec 2015 18:47:56 +0000 (13:47 -0500)
committerAndi McClure <andi.mcclure@xamarin.com>
Tue, 15 Dec 2015 18:47:56 +0000 (13:47 -0500)
commitdde9ee9e2f8ccdedc6a58a9db9ef28519d06723c
tree5342ea621efc48f6cbffea6d6464a870aff8d01f
parent5b9b780ba74ebd9258cb0862a571f9c1f2149885
Let GetTransparentProxy fail clean on load error (bug 36848)

icall for Remoting.RealProxy.GetTransparentProxy can sometimes attempt
to load an invalid class which is not previously loaded. Currently,
this leads to an assert failure in mono_class_proxy_vtable which does
not expect to be getting an invalid proxy class as input. Fix is for
the icall to load the class early and raise on failure.

A test is included.
mono/metadata/icall.c
mono/tests/Makefile.am
mono/tests/bug-36848-a.cs [new file with mode: 0644]
mono/tests/bug-36848.cs [new file with mode: 0644]