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

            /* POTENTIAL FLAW: Set data to a value greater than the size of the array */
            data = 100;
            Container dataContainer = new Container();

            dataContainer.containerOne = data;
            CWE129_Improper_Validation_of_Array_Index__large_fixed_array_read_check_min_67b.BadSink(dataContainer);
        }