mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +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
|
node instanceof DataFlow::ParameterNode and
|
||||||
// exclude parameters to the SINK-functions
|
// exclude parameters to the SINK-functions
|
||||||
not exists(DataFlowPrivate::DataFlowCallable c |
|
not exists(DataFlowPrivate::DataFlowCallable c |
|
||||||
node.(DataFlow::SourceParameterNode).isParameterOf(c, _) and
|
c.getParameter(_) = node.asCfgNode() and
|
||||||
c.getName().matches("SINK_")
|
c.getName().matches("SINK_")
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user