Exemple #1
0
        /* goodB2G() - use BadSource and GoodSink */
        private static void GoodB2G()
        {
            ulong data;

            /* POTENTIAL FLAW: Use a random value */
            data = IO.GetRandomULong();
            Dictionary <int, ulong> dataDictionary = new Dictionary <int, ulong>();

            dataDictionary.Add(0, data);
            dataDictionary.Add(1, data);
            dataDictionary.Add(2, data);
            CWE190_Integer_Overflow__UInt64_rand_add_74b.GoodB2GSink(dataDictionary);
        }