/* goodB2G() - use BadSource and GoodSink */ private static void GoodB2G() { string data; data = ""; /* Initialize data */ { /* read user input from console with ReadLine */ try { /* POTENTIAL FLAW: Read data from the console using ReadLine */ data = Console.ReadLine(); } catch (IOException exceptIO) { IO.Logger.Log(NLog.LogLevel.Warn, exceptIO, "Error with stream reading"); } } LinkedList <string> dataLinkedList = new LinkedList <string>(); dataLinkedList.AddLast(data); dataLinkedList.AddLast(data); dataLinkedList.AddLast(data); CWE313_Cleartext_Storage_in_a_File_or_on_Disk__ReadLine_73b.GoodB2GSink(dataLinkedList); }