https://bugzilla.novell.com/show_bug.cgi?id=470089
Summary: Overflow when casting from ulong to uint is not
detected
Classification: Mono
Product: Mono: Runtime
Version: 1.9
Platform: x86-64
OS/Version: Ubuntu
Status: NEW
Severity: Normal
Priority: P5 - None
Component: JIT
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
Found By: ---
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.5)
Gecko/2008121623 Ubuntu/8.10 (intrepid) Firefox/3.0.5
This here causes an overflow in .net 2.0, but just truncates in mono:
ulong b = 0xFFFFFFFFFF; uint a = (uint) b;
Reproducible: Always
Steps to Reproduce:
1.ulong b = 0xFFFFFFFFFF; uint a = (uint) b;
2.
3.
Actual Results:
b == 0xFFFFFFFF
Expected Results:
Overflow exception
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs