Skip to content

Commit 55bd85e

Browse files
committed
Fix missing QLDoc
1 parent 78c3f9c commit 55bd85e

File tree

1 file changed

+9
-0
lines changed
  • csharp/ql/lib/semmle/code/csharp/security/dataflow/flowsources

1 file changed

+9
-0
lines changed

csharp/ql/lib/semmle/code/csharp/security/dataflow/flowsources/Local.qll

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,27 @@ class TextFieldSource extends LocalUserInputSource {
3131
override string getSourceType() { result = "TextBox text" }
3232
}
3333

34+
/**
35+
* A dataflow source that represents the access of an environment variable.
36+
*/
3437
abstract class EnvironmentVariableSource extends LocalFlowSource {
3538
override string getThreatModel() { result = "environment" }
3639

3740
override string getSourceType() { result = "environment variable" }
3841
}
3942

43+
/**
44+
* A dataflow source that represents the access of a command line argument.
45+
*/
4046
abstract class CommandLineArgumentSource extends LocalFlowSource {
4147
override string getThreatModel() { result = "commandargs" }
4248

4349
override string getSourceType() { result = "command line argument" }
4450
}
4551

52+
/**
53+
* A data flow source that represents the parameters of the `Main` method of a program.
54+
*/
4655
private class MainMethodArgumentSource extends CommandLineArgumentSource {
4756
MainMethodArgumentSource() { this.asParameter() = any(MainMethod mainMethod).getAParameter() }
4857
}

0 commit comments

Comments
 (0)