Skip to content

Commit 415e974

Browse files
committed
Swift: Add a 'RemoteFlowSource' class.
1 parent f9c8926 commit 415e974

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* Provides classes representing various flow sources for taint tracking.
3+
*/
4+
5+
private import ExternalFlow
6+
private import internal.DataFlowPublic
7+
8+
/** A data flow source of remote user input. */
9+
abstract class RemoteFlowSource extends Node {
10+
/** Gets a string that describes the type of this remote flow source. */
11+
abstract string getSourceType();
12+
}
13+
14+
private class ExternalRemoteFlowSource extends RemoteFlowSource {
15+
ExternalRemoteFlowSource() { sourceNode(this, "remote") }
16+
17+
override string getSourceType() { result = "external" }
18+
}

0 commit comments

Comments
 (0)