Skip to content

Commit 11830bf

Browse files
Move to separate folder
1 parent 5b7200a commit 11830bf

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

python/ql/src/Variables/LoopVariableCapture.ql renamed to python/ql/src/Variables/LoopVariableCapture/LoopVariableCapture.ql

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ module EscapingCaptureFlowSig implements DataFlow::ConfigSig {
5252

5353
predicate isBarrierOut(DataFlow::Node node) { isSink(node) }
5454

55+
predicate isBarrier(DataFlow::Node node) {
56+
// Incorrect virtual dispatch to __call__ methods is a source of FPs.
57+
exists(Function call |
58+
call.getName() = "__call__" and
59+
call.getArg(0) = node.(DataFlow::ParameterNode).getParameter()
60+
)
61+
}
62+
5563
predicate allowImplicitRead(DataFlow::Node node, DataFlow::ContentSet cs) {
5664
isSink(node) and
5765
exists(cs)

0 commit comments

Comments
 (0)