Example #1
0
        public override void Bad()
        {
            float data;

            badPublicStatic = true;
            data            = CWE197_Numeric_Truncation_Error__float_connect_tcp_to_byte_22b.BadSource();
            {
                /* POTENTIAL FLAW: Convert data to a byte, possibly causing a truncation error */
                IO.WriteLine((byte)data);
            }
        }