mirror of
https://github.com/github/codeql.git
synced 2026-03-05 15:16:47 +01:00
Refactor EnvInput to MaD
This commit is contained in:
committed by
Ed Minnix
parent
d258f69ab0
commit
655470f3da
@@ -233,10 +233,7 @@ deprecated class EnvInput extends DataFlow::Node {
|
||||
* environment variables.
|
||||
*/
|
||||
private class EnvironmentInput extends LocalUserInput {
|
||||
EnvironmentInput() {
|
||||
// Results from various specific methods.
|
||||
this.asExpr().(MethodAccess).getMethod() instanceof EnvReadMethod
|
||||
}
|
||||
EnvironmentInput() { sourceNode(this, "environment") }
|
||||
|
||||
override string getThreatModel() { result = "environment" }
|
||||
}
|
||||
@@ -268,10 +265,7 @@ private class CliInput extends LocalUserInput {
|
||||
private class FileInput extends LocalUserInput {
|
||||
FileInput() {
|
||||
// Access to files.
|
||||
this.asExpr()
|
||||
.(ConstructorCall)
|
||||
.getConstructedType()
|
||||
.hasQualifiedName("java.io", "FileInputStream")
|
||||
sourceNode(this, "file")
|
||||
}
|
||||
|
||||
override string getThreatModel() { result = "file" }
|
||||
|
||||
Reference in New Issue
Block a user