Exemplo n.º 1
0
        /* goodB2G() - use badsource and goodsink */
        private static void GoodB2G()
        {
            int data;

            /* POTENTIAL FLAW: Use the maximum value for this type */
            data = int.MaxValue;
            int[] dataArray = new int[5];
            dataArray[2] = data;
            CWE190_Integer_Overflow__int_max_square_66b.GoodB2GSink(dataArray);
        }