[Mono-bugs] [Bug 470089] New: Overflow when casting from ulong to uint is not detected
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Jan 28 04:20:59 EST 2009
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: lupus at novell.com
ReportedBy: andres.meyer at computer.org
QAContact: mono-bugs at lists.ximian.com
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.
More information about the mono-bugs
mailing list