[Mono-bugs] [Bug 39094][Wis] New - System.Text.ASCIIEncoding & Latin1Encoding IndexOutOfRangeException problem

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Wed, 5 Mar 2003 07:07:34 -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 avd@openlinksw.com.

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

--- shadow/39094	Wed Mar  5 07:07:34 2003
+++ shadow/39094.tmp.16917	Wed Mar  5 07:07:34 2003
@@ -0,0 +1,27 @@
+Bug#: 39094
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: avd@openlinksw.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Text.ASCIIEncoding & Latin1Encoding IndexOutOfRangeException problem
+
+Description of Problem:
+
+The GetString() method of System.Text.ASCIIEncoding and
+System.Text.Latin1Encoding throw an exception on zero
+length byte array:
+
+System.IndexOutOfRangeException: Array index is out of range
+in <0x0005a> 00 System.Text.Latin1Encoding:GetString (byte[])
+in <0x00082> 00 .TestGetString:Test (string,System.Text.Encoding)