[Mono-bugs] [Bug 77274][Nor] New - bug in CP950 encoding - GetChars method

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Jan 16 08:36:47 EST 2006


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 bruno at clisp.org.

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

--- shadow/77274	2006-01-16 08:36:47.000000000 -0500
+++ shadow/77274.tmp.9768	2006-01-16 08:36:47.000000000 -0500
@@ -0,0 +1,54 @@
+Bug#: 77274
+Product: Mono: Class Libraries
+Version: 1.1
+OS: Mac OS X 10.3
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: bruno at clisp.org               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: bug in CP950 encoding - GetChars method
+
+Please fill in this template when reporting a bug, unless you know what you are doing. 
+Description of Problem: 
+ 
+The CP950 encoding converter throws exceptions where it shouldn't. 
+ 
+Steps to reproduce the problem: 
+1. mcs monobug.java 
+2. mono monobug.exe 
+ 
+Actual Results: 
+ 
+System.IndexOutOfRangeException: Array index is out of range. 
+in <0x00168> I18N.CJK.CP950:GetChars (System.Byte[] bytes, Int32 byteIndex, Int32 
+byteCount, System.Char[] chars, Int32 charIndex) 
+in <0x000cc> I18N.CJK.DbcsEncoding:GetCharCount (System.Byte[] bytes, Int32 index, 
+Int32 count) 
+in <0x0005c> System.Text.Encoding:GetChars (System.Byte[] bytes) 
+in <0x000e0> monobug:Main (System.String[] args) 
+in <0x00168> I18N.CJK.CP950:GetChars (System.Byte[] bytes, Int32 byteIndex, Int32 
+byteCount, System.Char[] chars, Int32 charIndex) 
+in <0x000cc> I18N.CJK.DbcsEncoding:GetCharCount (System.Byte[] bytes, Int32 index, 
+Int32 count) 
+in <0x0005c> System.Text.Encoding:GetChars (System.Byte[] bytes) 
+in <0x000e0> monobug:Main (System.String[] args) 
+ 
+Expected Results: 
+ 
+No exception. 
+ 
+How often does this happen?  
+ 
+Reproducible. 
+ 
+Additional Information: 
+ 
+Source code see attachment.


More information about the mono-bugs mailing list