[Mono-bugs] [Bug 78857][Nor] New - System.Reflection.Emit.ModuleBuilder.DefineType misbehavior when parent is null

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jul 14 10:02:41 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by ladislav.prosek at matfyz.cz.

http://bugzilla.ximian.com/show_bug.cgi?id=78857

--- shadow/78857	2006-07-14 10:02:41.000000000 -0400
+++ shadow/78857.tmp.3044	2006-07-14 10:02:41.000000000 -0400
@@ -0,0 +1,34 @@
+Bug#: 78857
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 001 One hour
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: ladislav.prosek at matfyz.cz               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Reflection.Emit.ModuleBuilder.DefineType misbehavior when parent is null
+
+Description of Problem:
+Passing null to ModuleBuilder.DefineType results in generating invalid
+metadata.
+
+Steps to reproduce the problem:
+1. Define a class using ModuleBuilder.DefineType and pass a null parent.
+2. Persist the assembly and run it.
+
+Actual Results:
+The runtime crashes due to invalid metadata.
+
+Expected Results:
+For classes, null parent is equivalent to System.Object (as in CLR).
+
+How often does this happen? 
+Always.


More information about the mono-bugs mailing list