Skip to content

Commit 40b3598

Browse files
committed
Also follow jump steps when looking for a callee source
This is needed because capturing a variable is a jump step and we want to find a callee source for captured functions.
1 parent c1cc441 commit 40b3598

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

go/ql/lib/semmle/go/dataflow/internal/DataFlowNodes.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ module Public {
473473
private DataFlow::Node getACalleeSource(DataFlow::CallNode cn) {
474474
result = cn.getCalleeNode() or
475475
basicLocalFlowStep(result, getACalleeSource(cn)) or
476+
jumpStep(result, getACalleeSource(cn)) or
476477
result.asExpr() = getACalleeSource(cn).asExpr().(GenericFunctionInstantiationExpr).getBase()
477478
}
478479

0 commit comments

Comments
 (0)