mirror of
https://github.com/github/codeql.git
synced 2026-02-23 10:23:41 +01:00
Python: Fix bad join in returnStep
This commit is contained in:
@@ -202,11 +202,18 @@ module TypeTrackingInput implements Shared::TypeTrackingInput<Location> {
|
||||
*/
|
||||
predicate returnStep(Node nodeFrom, LocalSourceNode nodeTo) {
|
||||
exists(DataFlowPrivate::ExtractedDataFlowCall call |
|
||||
nodeFrom.(DataFlowPrivate::ReturnNode).getEnclosingCallable() = call.getCallable() and
|
||||
returnNodeEnclosingCallable(nodeFrom) = call.getCallable() and
|
||||
nodeTo.(DataFlowPublic::CfgNode).getNode() = call.getNode()
|
||||
)
|
||||
}
|
||||
|
||||
pragma[nomagic]
|
||||
private DataFlowDispatch::DataFlowCallable returnNodeEnclosingCallable(
|
||||
DataFlowPrivate::ReturnNode returnNode
|
||||
) {
|
||||
result = returnNode.getEnclosingCallable()
|
||||
}
|
||||
|
||||
/**
|
||||
* Holds if `nodeFrom` is being written to the `content` content of the object in `nodeTo`.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user