http://bugzilla.novell.com/show_bug.cgi?id=562183

http://bugzilla.novell.com/show_bug.cgi?id=562183#c1


--- Comment #1 from Sebastien Pouliot <[email protected]> 2009-12-14 20:23:05 
UTC ---
mono_class_setup_vtable can fail (silently) and won't allocate the vtable field
- cause the above crash.

This patch will set an exception of the class, which will allow mono_class_init
to work properly (and report the bad type).

Index: metadata/class.c
===================================================================
--- metadata/class.c    (revision 148405)
+++ metadata/class.c    (working copy)
@@ -2891,6 +2891,8 @@

     if (ok)
         mono_class_setup_vtable_general (class, overrides, onum);
+    else
+        mono_class_set_failure (class, MONO_EXCEPTION_TYPE_LOAD, NULL);

     g_free (overrides);

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to