зеркало из https://github.com/mono/mail-archives.git
170 строки
5.3 KiB
HTML
170 строки
5.3 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-bugs] [Bug 558124] [verifier] SIGSEGV in inflate_generic_type on a bad assembly
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20558124%5D%20%5Bverifier%5D%20SIGSEGV%20in%20inflate_generic_type%0A%20on%20a%20bad%20assembly&In-Reply-To=bug-558124-28286%40http.bugzilla.novell.com/">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="095184.html">
|
|
<LINK REL="Next" HREF="095211.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-bugs] [Bug 558124] [verifier] SIGSEGV in inflate_generic_type on a bad assembly</H1>
|
|
<B>bugzilla_noreply at novell.com</B>
|
|
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20558124%5D%20%5Bverifier%5D%20SIGSEGV%20in%20inflate_generic_type%0A%20on%20a%20bad%20assembly&In-Reply-To=bug-558124-28286%40http.bugzilla.novell.com/"
|
|
TITLE="[Mono-bugs] [Bug 558124] [verifier] SIGSEGV in inflate_generic_type on a bad assembly">bugzilla_noreply at novell.com
|
|
</A><BR>
|
|
<I>Tue Nov 24 14:56:17 EST 2009</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="095184.html">[Mono-bugs] [Bug 558124] New: [verifier] SIGSEGV in inflate_generic_type on a bad assembly
|
|
</A></li>
|
|
<LI>Next message: <A HREF="095211.html">[Mono-bugs] [Bug 558124] [verifier] SIGSEGV in inflate_generic_type on a bad assembly
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#95185">[ date ]</a>
|
|
<a href="thread.html#95185">[ thread ]</a>
|
|
<a href="subject.html#95185">[ subject ]</a>
|
|
<a href="author.html#95185">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE><A HREF="http://bugzilla.novell.com/show_bug.cgi?id=558124">http://bugzilla.novell.com/show_bug.cgi?id=558124</A>
|
|
|
|
<A HREF="http://bugzilla.novell.com/show_bug.cgi?id=558124#c1">http://bugzilla.novell.com/show_bug.cgi?id=558124#c1</A>
|
|
|
|
|
|
--- Comment #1 from Sebastien Pouliot <<A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">spouliot at novell.com</A>> 2009-11-24 19:56:13 UTC ---
|
|
I'm using this local patch (fixing the first two instances in
|
|
inflate_generic_type and asserting on the third) to continue fuzzing on other
|
|
cases.
|
|
|
|
Index: mono/metadata/class.c
|
|
===================================================================
|
|
--- mono/metadata/class.c (revision 146856)
|
|
+++ mono/metadata/class.c (working copy)
|
|
@@ -505,8 +505,9 @@
|
|
if (!inst || !inst->type_argv)
|
|
return NULL;
|
|
if (num >= inst->type_argc) {
|
|
+ char *name = image ? image->module_name : "<no-image>";
|
|
MonoGenericParamInfo *info = mono_generic_param_info
|
|
(type->data.generic_param);
|
|
- mono_error_set_bad_image (error, image->module_name, "MVAR %d (%s)
|
|
cannot be expanded in this context with %d instantiations",
|
|
+ mono_error_set_bad_image (error, name, "MVAR %d (%s) cannot be
|
|
expanded in this context with %d instantiations",
|
|
num, info ? info->name : "", inst->type_argc);
|
|
return NULL;
|
|
}
|
|
@@ -528,8 +529,9 @@
|
|
if (!inst)
|
|
return NULL;
|
|
if (num >= inst->type_argc) {
|
|
+ char *name = image ? image->module_name : "<no-image>";
|
|
MonoGenericParamInfo *info = mono_generic_param_info
|
|
(type->data.generic_param);
|
|
- mono_error_set_bad_image (error, image->module_name, "VAR %d (%s)
|
|
cannot be expanded in this context with %d instantiations",
|
|
+ mono_error_set_bad_image (error, name, "VAR %d (%s) cannot be
|
|
expanded in this context with %d instantiations",
|
|
num, info ? info->name : "", inst->type_argc);
|
|
return NULL;
|
|
}
|
|
@@ -593,6 +595,7 @@
|
|
if (inst == container->context.class_inst)
|
|
return NULL;
|
|
|
|
+ g_assert (klass->image);
|
|
gclass = mono_metadata_lookup_generic_class (klass, inst,
|
|
klass->image->dynamic);
|
|
|
|
nt = mono_metadata_type_dup (image, type);
|
|
|
|
--
|
|
Configure bugmail: <A HREF="http://bugzilla.novell.com/userprefs.cgi?tab=email">http://bugzilla.novell.com/userprefs.cgi?tab=email</A>
|
|
------- You are receiving this mail because: -------
|
|
You are the QA contact for the bug.
|
|
</PRE>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="095184.html">[Mono-bugs] [Bug 558124] New: [verifier] SIGSEGV in inflate_generic_type on a bad assembly
|
|
</A></li>
|
|
<LI>Next message: <A HREF="095211.html">[Mono-bugs] [Bug 558124] [verifier] SIGSEGV in inflate_generic_type on a bad assembly
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#95185">[ date ]</a>
|
|
<a href="thread.html#95185">[ thread ]</a>
|
|
<a href="subject.html#95185">[ subject ]</a>
|
|
<a href="author.html#95185">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
|
|
<hr>
|
|
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
|
|
mailing list</a><br>
|
|
</body></html>
|