Skip to content

Commit b32a08a

Browse files
committed
Fix missing QLDoc
1 parent e851b43 commit b32a08a

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
@@ -32,18 +32,27 @@ class TextFieldSource extends LocalUserInputSource {
3232
override string getSourceType() { result = "TextBox text" }
3333
}
3434

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

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

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

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

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

0 commit comments

Comments
 (0)