[Mono-bugs] [Bug 562183] [verifier] SIGSEGV in mono_class_init (vtable) on a bad assembly
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Dec 14 15:23:06 EST 2009
http://bugzilla.novell.com/show_bug.cgi?id=562183
http://bugzilla.novell.com/show_bug.cgi?id=562183#c1
--- Comment #1 from Sebastien Pouliot <spouliot at novell.com> 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.
More information about the mono-bugs
mailing list