mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
C#: Add Console.Read* to local flow sources
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System;
|
||||
|
||||
public class Program
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
var format = Console.ReadLine();
|
||||
|
||||
// BAD: Uncontrolled format string.
|
||||
var x = string.Format(format, 1, 2);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user