mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
C#: Move all predefined sources and sinks into security/dataflow/flow{sinks,sources}
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Specialized;
|
||||
|
||||
class PublicCallableParameterFlowSource
|
||||
{
|
||||
public void M1(string x, out string y, ref string z)
|
||||
{
|
||||
y = x;
|
||||
y = z;
|
||||
}
|
||||
|
||||
void M2(string x, out string y, ref string z)
|
||||
{
|
||||
y = x;
|
||||
y = z;
|
||||
}
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
| PublicCallableParameterFlowSource.cs:6:27:6:27 | x |
|
||||
| PublicCallableParameterFlowSource.cs:6:55:6:55 | z |
|
||||
@@ -1,5 +0,0 @@
|
||||
import semmle.code.csharp.dataflow.flowsources.PublicCallableParameter
|
||||
|
||||
from PublicCallableParameterFlowSource source
|
||||
where source.getParameter().fromSource()
|
||||
select source
|
||||
@@ -1,4 +1,4 @@
|
||||
import semmle.code.csharp.dataflow.flowsources.Remote
|
||||
import semmle.code.csharp.security.dataflow.flowsources.Remote
|
||||
|
||||
from RemoteFlowSource source
|
||||
select source, source.getSourceType()
|
||||
|
||||
Reference in New Issue
Block a user