Example #1
0
        public override void Bad()
        {
            long data = CWE191_Integer_Underflow__Long_min_sub_61b.BadSource();
            /* POTENTIAL FLAW: if data == long.MinValue, this will overflow */
            long result = (long)(data - 1);

            IO.WriteLine("result: " + result);
        }