https://bugzilla.novell.com/show_bug.cgi?id=349272
Summary: [PATCH] AppDomain.DefineDynamicAssembly crashes the
runtime if name.Name is null
Product: Mono: Class Libraries
Version: SVN
Platform: All
OS/Version: All
Status: NEW
Severity: Major
Priority: P5 - None
Component: CORLIB
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
QAContact: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Found By: ---
Repro:
using System;
using System.Reflection;
using System.Reflection.Emit;
public class DynamicTypeTestcase
{
public static void Main()
{
AssemblyName an = new AssemblyName();
//an.Name = "TestAssembly";
AssemblyBuilder ab =
AppDomain.CurrentDomain.DefineDynamicAssembly(an,
AssemblyBuilderAccess.RunAndSave);
//SEGMENTATION FAULT
}
}
Should be:
ArgumentException as defined in
http://msdn2.microsoft.com/en-us/library/bs22fky4.aspx
Attached patch fixes this.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs