Example #1
0
        public override void Bad()
        {
            byte data = CWE190_Integer_Overflow__Byte_max_square_61b.BadSource();
            /* POTENTIAL FLAW: if (data*data) > byte.MaxValue, this will overflow */
            byte result = (byte)(data * data);

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