示例#1
0
        /* goodB2G() - use badsource and goodsink */
        private static void GoodB2G()
        {
            sbyte data;

            /* POTENTIAL FLAW: Use the maximum size of the data type */
            data = sbyte.MaxValue;
            sbyte[] dataArray = new sbyte[5];
            dataArray[2] = data;
            CWE190_Integer_Overflow__SByte_max_square_66b.GoodB2GSink(dataArray);
        }