When inflating a (M)VAR make sure we're not using a broken type.
commita0f2930ea5c6042ff896c137fa138bba8ebbdb9c
authorRodrigo Kumpera <kumpera@gmail.com>
Thu, 1 Nov 2012 20:23:50 +0000 (1 16:23 -0400)
committerRodrigo Kumpera <kumpera@gmail.com>
Thu, 1 Nov 2012 22:05:48 +0000 (1 18:05 -0400)
treeefe7497f1ac5ccd4c665159d9a2175afbb74b052
parent117caa26b6883a532ea9f1113c991c53ac130db6
When inflating a (M)VAR make sure we're not using a broken type.

*class.c (inflate_generic_type): When inflating (M)VAR we must
check if the replaced type is not void or typedbyref as both can
later lead to all sorts of nasty crashes or memory corruption.
mono/metadata/class.c
mono/tests/Makefile.am
mono/tests/invalid_generic_instantiation.il [new file with mode: 0644]