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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=77306 --- shadow/77306 2006-01-19 12:21:28.000000000 -0500 +++ shadow/77306.tmp.554 2006-01-19 12:21:28.000000000 -0500 @@ -0,0 +1,55 @@ +Bug#: 77306 +Product: Mono: Class Libraries +Version: 1.1 +OS: Mac OS X 10.3 +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: CORLIB +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: bug in GB18030 encoding - GetChars method + +Please fill in this template when reporting a bug, unless you know what you are +doing. +Description of Problem: + +The GB18030 encoding converter throws exceptions where it shouldn't. + +Steps to reproduce the problem: +1. mcs monobug.cs +2. mono monobug.exe + +Actual Results: + +System.IndexOutOfRangeException: Array index is out of range. +in <0x0058c> I18N.CJK.GB18030Decoder:GetChars (System.Byte[] bytes, +Int32 byteIndex, Int32 byteCount, System.Char[] chars, Int32 charIndex) +in <0x00078> I18N.CJK.GB18030Encoding:GetChars (System.Byte[] bytes, +Int32 byteIdx, Int32 srclen, System.Char[] chars, Int32 charIdx) +in <0x000ac> System.Text.Encoding:GetChars (System.Byte[] bytes) +in <0x000e0> monobug:Main (System.String[] args) +in <0x0058c> I18N.CJK.GB18030Decoder:GetChars (System.Byte[] bytes, +Int32 byteIndex, Int32 byteCount, System.Char[] chars, Int32 charIndex) +in <0x00078> I18N.CJK.GB18030Encoding:GetChars (System.Byte[] bytes, +Int32 byteIdx, Int32 srclen, System.Char[] chars, Int32 charIdx) +in <0x000ac> 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. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
