Esempio n. 1
0
        /* goodG2B() - use goodsource and badsink */
        private static void GoodG2B()
        {
            uint data;

            /* FIX: Use a hardcoded number that won't cause underflow, overflow, divide by zero, or loss-of-precision issues */
            data = 2;
            uint[] dataArray = new uint[5];
            dataArray[2] = data;
            CWE191_Integer_Underflow__UInt32_console_ReadLine_multiply_66b.GoodG2BSink(dataArray);
        }