[Mono-bugs] [Bug 415628] Bad UTF-8 sequences result in a crash
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Nov 11 16:25:13 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=415628
User tedu at fogcreek.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=415628#c5
Ted Unangst <tedu at fogcreek.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
Info Provider|tedu at fogcreek.com |
--- Comment #5 from Ted Unangst <tedu at fogcreek.com> 2008-11-11 14:25:12 MST ---
Attaching sample reader and baddata.bin.
Expected:
tedu at ted-vm1:/tmp$ ~/mono/2.0/bin/mono readbad.exe readbad.cs
read them all
Or even reading itself, a fairly nonsensical string:
tedu at ted-vm1:/tmp$ ~/mono/2.0/bin/mono readbad.exe readbad.exe
read them all
With attached file:
tedu at ted-vm1:/tmp$ ~/mono/2.0/bin/mono readbad.exe baddata.bin
Unhandled Exception: System.ArgumentException: Arg_InsufficientSpace
Parameter name: chars
at System.Text.UTF8Encoding.InternalGetChars (System.Byte* bytes, Int32
byteCount, System.Char* chars, Int32 charCount, System.UInt32& leftOverBits,
System.UInt32& leftOverCount, System.Object provider,
System.Text.DecoderFallbackBuffer& fallbackBuffer, System.Byte[]& bufferArg,
Boolean flush) [0x00000]
at System.Text.UTF8Encoding.InternalGetChars (System.Byte[] bytes, Int32
byteIndex, Int32 byteCount, System.Char[] chars, Int32 charIndex,
System.UInt32& leftOverBits, System.UInt32& leftOverCount, System.Object
provider, System.Text.DecoderFallbackBuffer& fallbackBuffer, System.Byte[]&
bufferArg, Boolean flush) [0x00000]
at System.Text.UTF8Encoding.GetChars (System.Byte[] bytes, Int32 byteIndex,
Int32 byteCount, System.Char[] chars, Int32 charIndex) [0x00000]
at System.Text.Encoding.GetChars (System.Byte[] bytes, Int32 index, Int32
count) [0x00000]
at System.Text.Encoding.GetString (System.Byte[] bytes, Int32 index, Int32
count) [0x00000]
at System.Text.UTF8Encoding.GetString (System.Byte[] bytes, Int32 index,
Int32 count) [0x00000]
at System.Text.Encoding.GetString (System.Byte[] bytes) [0x00000]
at Fun.Boom.Main (System.String[] args) [0x00000]
--
Configure bugmail: https://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