mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
python: we have hidden isParameterOf
but now allow a clear alternative
This commit is contained in:
@@ -20,7 +20,7 @@ class CallGraphConfig extends DataFlow::Configuration {
|
||||
node instanceof DataFlow::ParameterNode and
|
||||
// exclude parameters to the SINK-functions
|
||||
not exists(DataFlowPrivate::DataFlowCallable c |
|
||||
node.(DataFlow::SourceParameterNode).isParameterOf(c, _) and
|
||||
c.getParameter(_) = node.asCfgNode() and
|
||||
c.getName().matches("SINK_")
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user