C#: Move all predefined sources and sinks into security/dataflow/flow{sinks,sources}

This commit is contained in:
Tom Hvitved
2020-03-25 13:24:48 +01:00
parent 7ac25d2439
commit fddbce0b7b
31 changed files with 257 additions and 271 deletions

View File

@@ -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;
}
}

View File

@@ -1,2 +0,0 @@
| PublicCallableParameterFlowSource.cs:6:27:6:27 | x |
| PublicCallableParameterFlowSource.cs:6:55:6:55 | z |

View File

@@ -1,5 +0,0 @@
import semmle.code.csharp.dataflow.flowsources.PublicCallableParameter
from PublicCallableParameterFlowSource source
where source.getParameter().fromSource()
select source

View File

@@ -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()