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

            /* POTENTIAL FLAW: Set data to a random value */
            data = (new Random()).Next();
            Container dataContainer = new Container();

            dataContainer.containerOne = data;
            CWE129_Improper_Validation_of_Array_Index__Random_array_read_no_check_67b.GoodB2GSink(dataContainer);
        }