[Mono-bugs] [Bug 349272] New: [PATCH] AppDomain. DefineDynamicAssembly crashes the runtime if name.Name is null

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Dec 17 12:35:51 EST 2007


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: mono-bugs at ximian.com
        ReportedBy: cedricv at neonux.com
         QAContact: mono-bugs at ximian.com
                CC: lupus at novell.com
          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.


More information about the mono-bugs mailing list