[Mono-bugs] [Bug 321615] C# compiler should use unsigned arithmetic and should support overflow check on pointers

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Nov 5 11:11:33 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=321615#c2





--- Comment #2 from Sebastien Pouliot <spouliot at novell.com>  2007-11-05 09:11:33 MST ---
Some unit tests are ignored because of this bug.

Under 1.x
tests 1,2,5 and 6 fails

Failures:
1) MonoTests.System.StringTest.TestSbytePtrConstructorOverflow1 :
ArgumentOutOfRangeException was expected

2) MonoTests.System.StringTest.TestSbytePtrConstructorOverflow3 :
ArgumentOutOfRangeException was expected

3) MonoTests.System.StringTest.TestSbytePtrConstructorOverflow5 :
ArgumentOutOfRangeException was expected

4) MonoTests.System.StringTest.TestSbytePtrConstructorOverflow6 : Expected:
ArgumentOutOfRangeException but was NullReferenceException
  at System.String.memcpy4 (System.Byte* dest, System.Byte* src, Int32 size)
[0x00077] in /home/poupou/svn/mcs/class/corlib/System/String.cs:2332
  at System.String.memcpy (System.Byte* dest, System.Byte* src, Int32 size)
[0x0009c] in /home/poupou/svn/mcs/class/corlib/System/String.cs:2409
  at System.String.CreateString (System.SByte* value, Int32 startIndex, Int32
length, System.Text.Encoding enc) [0x00097] in
/home/poupou/svn/mcs/class/corlib/System/String.cs:2143


Under 2.x
tests 1,2,5 fails

Failures:
1) MonoTests.System.StringTest.TestSbytePtrConstructorOverflow1 :
ArgumentOutOfRangeException was expected

2) MonoTests.System.StringTest.TestSbytePtrConstructorOverflow3 :
ArgumentOutOfRangeException was expected

3) MonoTests.System.StringTest.TestSbytePtrConstructorOverflow5 :
ArgumentOutOfRangeException was expected


I re-enabled TestSbytePtrConstructorOverflow[2,4] in r88876.


-- 
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