Merge pull request #9635 from MathiasVP/swift-add-remote-flow-sources

Swift: Add `RemoteFlowSource`
This commit is contained in:
Mathias Vorreiter Pedersen
2022-06-22 14:41:19 +01:00
committed by GitHub

View File

@@ -0,0 +1,18 @@
/**
* Provides classes representing various flow sources for taint tracking.
*/
private import ExternalFlow
private import internal.DataFlowPublic
/** A data flow source of remote user input. */
abstract class RemoteFlowSource extends Node {
/** Gets a string that describes the type of this remote flow source. */
abstract string getSourceType();
}
private class ExternalRemoteFlowSource extends RemoteFlowSource {
ExternalRemoteFlowSource() { sourceNode(this, "remote") }
override string getSourceType() { result = "external" }
}