/* goodB2G() - use BadSource and GoodSink */ private static void GoodB2G() { long data; /* POTENTIAL FLAW: Use the maximum size of the data type */ data = long.MaxValue; Hashtable dataHashtable = new Hashtable(5); dataHashtable.Add(0, data); dataHashtable.Add(1, data); dataHashtable.Add(2, data); CWE190_Integer_Overflow__Long_max_square_72b.GoodB2GSink(dataHashtable); }