[Mono-bugs] [Bug 59296][Nor] New - checked doesn't always works
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sat, 29 May 2004 12:21:53 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by sebastien@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=59296
--- shadow/59296 2004-05-29 12:21:53.000000000 -0400
+++ shadow/59296.tmp.28108 2004-05-29 12:21:53.000000000 -0400
@@ -0,0 +1,68 @@
+Bug#: 59296
+Product: Mono: Runtime
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: sebastien@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: checked doesn't always works
+
+Description of Problem:
+It seems that in some cases 'checked' doesn't throw an OverflowException
+
+Steps to reproduce the problem:
+1. Compile the attached source code
+2. Run with Mono runtime
+3. Run with MS runtime
+
+Actual Results:
+# mono ovr1.exe
+1- String: -92233720368547758081
+1- Parsed: -1
+2- String: 92233720368547758071
+
+Unhandled Exception: System.OverflowException: Number overflow.
+in (unmanaged) (wrapper managed-to-native)
+System.Object:__icall_wrapper___emul_lmul_ovf (long,long)
+in <0x00004> (wrapper managed-to-native)
+System.Object:__icall_wrapper___emul_lmul_ovf (long,long)
+in <0x000ee> Overflow:Parse (string)
+in <0x000de> Overflow:Main (string[])
+
+
+Expected Results:
+ovr1.exe
+1- String: -92233720368547758081
+
+Unhandled Exception: System.OverflowException: Number overflow.
+in (unmanaged) (wrapper managed-to-native)
+System.Object:__icall_wrapper___emul_lmul_ovf (long,long)
+in <0x00004> (wrapper managed-to-native)
+System.Object:__icall_wrapper___emul_lmul_ovf (long,long)
+in <0x000ee> Overflow:Parse (string)
+in <0x000de> Overflow:Main (string[])
+
+
+How often does this happen?
+Always
+
+
+Additional Information:
+Both parsed string are invalid.
+
+
+How often does this happen?
+Always
+
+
+Additional Information:
+Both parsed string are invalid.