mirror of
https://github.com/github/codeql.git
synced 2026-03-27 09:48:16 +01:00
18 lines
298 B
C#
18 lines
298 B
C#
class Splitting
|
|
{
|
|
void M1(bool b, string tainted)
|
|
{
|
|
if (b)
|
|
if (tainted == null)
|
|
return;
|
|
var x = Return(tainted);
|
|
Check(x);
|
|
if (b)
|
|
Check(x);
|
|
}
|
|
|
|
static void Check<T>(T x) { }
|
|
|
|
static T Return<T>(T x) => x;
|
|
}
|