2010-01-14 Rodrigo Kumpera <rkumpera@novell.com>
commit6d19842fea81765b0c5f1f9b000a10f6819cf4a2
authorkumpera <kumpera@e3ebcda4-bce8-0310-ba0a-eca2169e7518>
Thu, 14 Jan 2010 21:04:28 +0000 (14 21:04 +0000)
committerkumpera <kumpera@e3ebcda4-bce8-0310-ba0a-eca2169e7518>
Thu, 14 Jan 2010 21:04:28 +0000 (14 21:04 +0000)
tree7172397564f602ce7e41cd39aa347866d45f97ba
parentf39009122c0fb16759db1b7b5a1ffb5a7de16778
2010-01-14  Rodrigo Kumpera  <rkumpera@novell.com>

* class.c (mono_type_has_exceptions): Check the generic instance. It can fail
independently of the GTD.

* class.c (mono_class_setup_fields): Fail if field has negative offset.

* class.c (mono_class_setup_fields): Fail if valuetype has zero size. Add sizeof(MonoObject)
to the upper limit since instance_size includes this amount.

* class.c (mono_class_layout_fields): Check if the types of the static fields have failed.

Fixes #569544.

git-svn-id: svn+ssh://mono-cvs.ximian.com/source/trunk/mono@149575 e3ebcda4-bce8-0310-ba0a-eca2169e7518
mono/metadata/ChangeLog
mono/metadata/class.c