示例#1
0
        public override void Bad()
        {
            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.BadSink(dataArray);
        }