mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Dataflow: Add consistency check.
This commit is contained in:
@@ -323,4 +323,18 @@ module MakeConsistency<
|
|||||||
lambdaCall(call, _, receiver) and
|
lambdaCall(call, _, receiver) and
|
||||||
not nodeGetEnclosingCallable(receiver) = call.getEnclosingCallable()
|
not nodeGetEnclosingCallable(receiver) = call.getEnclosingCallable()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
query predicate speculativeStepAlreadyHasModel(Node n1, Node n2, string model) {
|
||||||
|
speculativeTaintStep(n1, n2) and
|
||||||
|
not defaultAdditionalTaintStep(n1, n2, _) and
|
||||||
|
(
|
||||||
|
simpleLocalFlowStep(n1, n2, _) and model = "SimpleLocalFlowStep"
|
||||||
|
or
|
||||||
|
exists(DataFlowCall call |
|
||||||
|
exists(viableCallable(call)) and
|
||||||
|
isArgumentNode(n1, call, _) and
|
||||||
|
model = "dispatch"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user