[Mono-bugs] [Bug 473899] UnicodeEncoding.Unicode.GetString allows invalid code points through

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Aug 31 03:20:50 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=473899

https://bugzilla.novell.com/show_bug.cgi?id=473899#c6


--- Comment #6 from Kornél Pál <kornelpal at gmail.com> 2010-08-31 07:20:49 UTC ---
Created an attachment (id=386397)
 --> (http://bugzilla.novell.com/attachment.cgi?id=386397)
InvalidUnicodeCodePointsTest.cs

Expected resuts:
True
False
OK: Unable to translate Unicode character \uDC00 at index 0 to specified code
page.
OK: Unable to translate bytes [00][DC] at index 0 from specified code page to
Unicode.

Actual results:
True
False
Error: GetBytes succeeded
Error: GetChars succeeded

Note that the actual bug is the complete lack of detecting invalid code points
and the complete lack of fallback support for UnicodeEncoding so this bug
should not be closed just because this test case will be fixed.

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


More information about the mono-bugs mailing list