Ejemplo n.º 1
0
        /* goodB2G() - use BadSource and GoodSink */
        private static void GoodB2G()
        {
            ushort data;

            /* POTENTIAL FLAW: Use a random value */
            data = (ushort)(new Random().Next(ushort.MinValue, ushort.MaxValue));
            LinkedList <ushort> dataLinkedList = new LinkedList <ushort>();

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