Python: Modernise semmle/python/dataflow/Files.qll

This commit is contained in:
Rasmus Wriedt Larsen
2020-04-08 16:53:19 +02:00
parent 6685a5ed4d
commit a2440f0fcd

View File

@@ -11,7 +11,7 @@ class OpenFileConfiguration extends TaintTracking::Configuration {
OpenFileConfiguration() { this = "Open file configuration" }
override predicate isSource(DataFlow::Node src, TaintKind kind) {
theOpenFunction().(FunctionObject).getACall() = src.asCfgNode() and
src.asCfgNode() = Value::named("open").getACall() and
kind instanceof OpenFile
}