Пример #1
0
        /* goodB2G2() - use badsource and goodsink by reversing the blocks in the if in the sink function */
        private void GoodB2G2()
        {
            uint data = 0u;

            /* POTENTIAL FLAW: Use a random value */
            data = (uint)(new Random().Next(1 << 30)) << 2 | (uint)(new Random().Next(1 << 2));
            goodB2G2PublicStatic = true;
            CWE190_Integer_Overflow__UInt32_rand_multiply_22b.GoodB2G2Sink(data);
        }