[Mono-bugs] [Bug 78899][Nor] Changed - C# compiler should use unsigned arithmetic and should support overflow check on pointers
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Jul 21 08:49:34 EDT 2006
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 rharinath at novell.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78899
--- shadow/78899 2006-07-21 07:42:19.000000000 -0400
+++ shadow/78899.tmp.11312 2006-07-21 08:49:34.000000000 -0400
@@ -96,6 +96,24 @@
When neither checked nor unchecked keyword is used (that was
unchecked context when compiling this code) bge is used. When using
checked or unchecked keywords then clt along with brfalse is used. I
don't know whether this is better than bge but this is definitely
inconsistent so I think this is a bug.
+
+------- Additional Comments From rharinath at novell.com 2006-07-21 08:49 -------
+No, I was referring to the code that CSC 2.0 generates:
+
+ IL_0001: ldarg.0
+ IL_0002: ldarg.1
+ IL_0003: add
+ IL_0004: ldarg.0
+ IL_0005: clt.un
+ IL_0007: ldc.i4.0
+ IL_0008: ceq
+ IL_000a: stloc.0
+ IL_000b: ldloc.0
+ IL_000c: brtrue.s IL_0014
+
+ IL_000e: newobj instance void class
+[mscorlib]System.Exception::.ctor() IL_0013: throw
+
More information about the mono-bugs
mailing list