[Mono-bugs] [Bug 573682] segtaults when encoding/decoding non-UTF8 strings

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jan 27 09:15:18 EST 2010



--- Comment #8 from Zoltan Varga <vargaz at gmail.com> 2010-01-27 14:15:17 UTC ---
The problem with the continue is that 'charIndex' is incremented at the
beginning of the loop, but charCount is only incremented at the end of the
loop, which the continue will skip, leading to the crash. By moving the
charCount-- to the beginning of the loop the test case runs fine for me, even
for the cp1250 encoding.

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list