Beispiel #1
0
        public override void Bad()
        {
            byte data;

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