[Mono-bugs] [Bug 59556][Nor] Changed - [PATCH] Wrong exception when allocating an array of a negative (or unsigned) size

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 27 Aug 2004 20:55:57 -0400 (EDT)


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 bmaurer@users.sf.net.

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

--- shadow/59556	2004-08-27 20:54:43.000000000 -0400
+++ shadow/59556.tmp.23323	2004-08-27 20:55:57.000000000 -0400
@@ -11,13 +11,13 @@
 AssignedTo: bmaurer@users.sf.net                            
 ReportedBy: sebastien@ximian.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
-Summary: Wrong exception when allocating an array of a negative (or unsigned) size
+Summary: [PATCH] Wrong exception when allocating an array of a negative (or unsigned) size
 
 Description of Problem:
 Mono throws a OutOfMemoryException where the MS runtime throws a
 OverflowException.
 
 
@@ -70,6 +70,10 @@
 as detailled in http://bugzilla.ximian.com/show_bug.cgi?id=59509
 
 ------- Additional Comments From bmaurer@users.sf.net  2004-08-27 20:54 -------
 Created an attachment (id=9850)
 patch
 
+
+------- Additional Comments From bmaurer@users.sf.net  2004-08-27 20:55 -------
+* object.c: check that array lengths are not negative (and throw
+S.OverflowException if they are) before doing OOM checks.