[Mono-bugs] [Bug 558046] [verifier] SIGSEGV in do_newobj (verify.c) on a bad assembly
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Nov 24 10:43:09 EST 2009
http://bugzilla.novell.com/show_bug.cgi?id=558046
http://bugzilla.novell.com/show_bug.cgi?id=558046#c1
--- Comment #1 from Sebastien Pouliot <spouliot at novell.com> 2009-11-24 15:43:08 UTC ---
This fix the crash but might now be the best fix (wrt FIXME). Note that it's
possible that this test case crash elsewhere (before hitting this condition) as
I'm now running with a few local patches.
Index: mono/metadata/verify.c
===================================================================
--- mono/metadata/verify.c (revision 146811)
+++ mono/metadata/verify.c (working copy)
@@ -3943,6 +3943,11 @@
//FIXME use mono_method_get_signature_full
sig = mono_method_signature (method);
+ if (!sig) {
+ ADD_VERIFY_ERROR (ctx, g_strdup_printf ("Could not resolve the
signature of constructor token 0x%08x at 0x%04x", token, ctx->ip_offset));
+ return;
+ }
+
if (!check_underflow (ctx, sig->param_count))
return;
--
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