mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
C#: Add some compound sink examples.
This commit is contained in:
@@ -79,3 +79,16 @@ public class NewSinks
|
||||
response.WriteFile(PrivateSetTaintedProp);
|
||||
}
|
||||
}
|
||||
|
||||
public class CompoundSinks
|
||||
{
|
||||
public void WrapNewSinkProp(NewSinks ns)
|
||||
{
|
||||
ns.WrapPropResponseWriteFile();
|
||||
}
|
||||
|
||||
public void WrapNewSinkField(NewSinks ns)
|
||||
{
|
||||
ns.WrapFieldResponseWriteFile();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user