Пример #1
0
        /* goodB2G() - use BadSource and GoodSink */
        private static void GoodB2G()
        {
            ulong data;

            /* POTENTIAL FLAW: Use the maximum size of the data type */
            data = ulong.MaxValue;
            LinkedList <ulong> dataLinkedList = new LinkedList <ulong>();

            dataLinkedList.AddLast(data);
            dataLinkedList.AddLast(data);
            dataLinkedList.AddLast(data);
            CWE190_Integer_Overflow__UInt64_max_add_73b.GoodB2GSink(dataLinkedList);
        }