[Mono-bugs] [Bug 37113][Nor] New - bounds checking in System.CharEnumerator.Current
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Thu, 23 Jan 2003 04:53:19 -0500 (EST)
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 crainaj@hotmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=37113
--- shadow/37113 Thu Jan 23 04:53:19 2003
+++ shadow/37113.tmp.14131 Thu Jan 23 04:53:19 2003
@@ -0,0 +1,33 @@
+Bug#: 37113
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: crainaj@hotmail.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: bounds checking in System.CharEnumerator.Current
+
+Description of Problem:
+
+In the file "corlib/System/CharEnumerator.cs" the "Current" property get
+operators should read:
+
+ if (index == -1 || index >= length)
+
+instead of:
+
+ if (index == -1 || index == length)
+
+
+Also, in the MSDN docs, IEnumerator.Current {get;} has the [Guid("")]
+attribute, but I don't see it in the current Mono implementation.
+(Although, I'm not sure if it's necessary, so if it isn't just disregard.)