bugDotGNU Portable.NET - Bugs: bug #9921, MethodBuilder.DefineParameter()...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #9921: MethodBuilder.DefineParameter() crashes on null param name

Submitted by:  Marcus Urban <mathpup>
Submitted on:  Sun 08 Aug 2004 08:46:58 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sun 08 Aug 2004 09:14:54 AM UTC, comment #1:

Fixed in CVS on 8th-August-2004 (because that's when it was reported ;-)

Gopal.V <t3rmin4t0r>
Project Administrator
Sun 08 Aug 2004 08:46:58 AM UTC, original submission:

MethodBuilder.DefineParameter() crashes with the message below when a null string is passed for the argument name. (The class lib docs explicitly permit the null string to be used here.)

Uncaught exception: System.OutOfMemoryException
at System.Reflection.Emit.ParameterBuilder.ClrParameterCreate(?)
at System.Reflection.Emit.ParameterBuilder..ctor(?) in ./System/Reflection/Emit/ParameterBuilder.cs:54
at System.Reflection.Emit.MethodBuilder.DefineParameter(?) in ./System/Reflection/Emit/MethodBuilder.cs:186
at Testing.Main(?)

Change the null on line 39 to "arg" and the crash does not occur.

Marcus Urban <mathpup>

 

Attached Files
file #1636:  sre-pnet-test.cs added by mathpup (2KiB - text/x-csharp - Test case)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 08 Aug 2004 09:14:54 AM UTCt3rmin4t0rStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Sun 08 Aug 2004 08:46:58 AM UTCmathpupAttached File-=>Added sre-pnet-test.cs, #1569

Back to the top


Powered by Savane 3.1-cleanup1