Skip to content

Commit be05b80

Browse files
committed
Swift: Add models-as-data local flow sources as well.
1 parent 0dcb554 commit be05b80

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

swift/ql/lib/codeql/swift/dataflow/FlowSources.qll

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ abstract class LocalFlowSource extends FlowSource { }
2525
*/
2626
abstract class RemoteFlowSource extends FlowSource { }
2727

28+
/**
29+
* A data flow source of local user input that is defined through 'models as data'.
30+
*/
31+
private class ExternalLocalFlowSource extends RemoteFlowSource {
32+
ExternalLocalFlowSource() { sourceNode(this, "local") }
33+
34+
override string getSourceType() { result = "external" }
35+
}
36+
2837
/**
2938
* A data flow source of remote user input that is defined through 'models as data'.
3039
*/

0 commit comments

Comments
 (0)