mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
Java: Add more qldoc.
This commit is contained in:
@@ -152,9 +152,13 @@ deprecated class RemoteUserInput extends UserInput {
|
||||
RemoteUserInput() { this instanceof RemoteFlowSource }
|
||||
}
|
||||
|
||||
/** Input that may be controlled by a local user. */
|
||||
/** A node with input that may be controlled by a local user. */
|
||||
abstract class LocalUserInput extends UserInput { }
|
||||
|
||||
/**
|
||||
* A node with input from the local environment, such as files, standard in,
|
||||
* environment variables, and main method parameters.
|
||||
*/
|
||||
class EnvInput extends LocalUserInput {
|
||||
EnvInput() {
|
||||
// Parameters to a main method.
|
||||
@@ -180,6 +184,7 @@ class EnvInput extends LocalUserInput {
|
||||
}
|
||||
}
|
||||
|
||||
/** A node with input from a database. */
|
||||
class DatabaseInput extends LocalUserInput {
|
||||
DatabaseInput() { this.asExpr().(MethodAccess).getMethod() instanceof ResultSetGetStringMethod }
|
||||
}
|
||||
@@ -222,10 +227,12 @@ private class EnvTaintedMethod extends Method {
|
||||
}
|
||||
}
|
||||
|
||||
/** The type `java.net.InetAddress`. */
|
||||
class TypeInetAddr extends RefType {
|
||||
TypeInetAddr() { this.getQualifiedName() = "java.net.InetAddress" }
|
||||
}
|
||||
|
||||
/** A reverse DNS method. */
|
||||
class ReverseDNSMethod extends Method {
|
||||
ReverseDNSMethod() {
|
||||
this.getDeclaringType() instanceof TypeInetAddr and
|
||||
|
||||
Reference in New Issue
Block a user