Skip to content

Commit 6fbed90

Browse files
committed
Be more specific to avoid CP
1 parent 9481fc9 commit 6fbed90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
private import go
77
private import DataFlowImplSpecific as Impl
8+
private import DataFlowUtil
89
private import TaintTrackingImplSpecific
910
private import codeql.dataflow.internal.DataFlowImplConsistency
1011
private import semmle.go.dataflow.internal.DataFlowNodes
@@ -17,7 +18,7 @@ private module Input implements InputSig<Location, Impl::GoDataFlow> {
1718
predicate uniqueNodeLocationExclude(DataFlow::Node n) { missingLocationExclude(n) }
1819

1920
predicate localFlowIsLocalExclude(DataFlow::Node n1, DataFlow::Node n2) {
20-
n1 instanceof DataFlow::FunctionNode and exists(n2)
21+
n1 instanceof DataFlow::FunctionNode and simpleLocalFlowStep(n1, n2, _)
2122
}
2223

2324
predicate argHasPostUpdateExclude(DataFlow::ArgumentNode n) {

0 commit comments

Comments
 (0)