[Mono-bugs] [Bug 75083][Nor] Changed - [PATCH] SByte.Parse ("-128", NumberStyles.Any) fails

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon May 30 10:28:50 EDT 2005


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

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

--- shadow/75083	2005-05-30 04:14:58.000000000 -0400
+++ shadow/75083.tmp.10825	2005-05-30 10:28:50.000000000 -0400
@@ -1,23 +1,23 @@
 Bug#: 75083
 Product: Mono: Class Libraries
 Version: 1.1
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: CORLIB
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: bmaurer at users.sf.net               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
-Summary: SByte.Parse ("-128", NumberStyles.Any) fails
+Summary: [PATCH] SByte.Parse ("-128", NumberStyles.Any) fails
 
 using System;
 using System.Globalization;
 
 class X {
 	static void Main ()
@@ -43,6 +43,20 @@
 in <0x00014> X:Main ()
 
 ------- Additional Comments From kazuki at panicode.com  2005-05-30 04:14 -------
 Created an attachment (id=15239)
 Proposed patch
 
+
+------- Additional Comments From bmaurer at users.sf.net  2005-05-30 10:28 -------
+The condition for failure stated in msdn is:
+
+count or startIndex is negative.
+
+-or-
+
+count + startIndex is greater than the number of characters in this
+instance
+
+That seems to allow what this patch allows.
+
+We need to audit the string code for this problem


More information about the mono-bugs mailing list