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

Submitter:  Marcus Urban <mathpup>
Submitted:  Sun 08 Aug 2004 08:46:58 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned 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>
Group 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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-08-08 t3rmin4t0r StatusNone Fixed
    Open/ClosedOpen Closed
2004-08-08 mathpup Attached File- Added sre-pnet-test.cs, #1569

Back to the top

Powered by Savane 3.15-94dd.
Corresponding source code