We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4578d7 commit c45d571Copy full SHA for c45d571
1 file changed
go/ql/lib/semmle/go/dataflow/internal/DataFlowPrivate.qll
@@ -103,6 +103,10 @@ private Field getASparselyUsedChannelTypedField() {
103
count(result.getARead()) = 2
104
}
105
106
+bindingset[v]
107
+pragma[inline_late]
108
+private predicate jumpStepHelper(ValueEntity v, Node n) { n = v.getARead() }
109
+
110
/**
111
* Holds if data can flow from `node1` to `node2` in a way that loses the
112
* calling context. For example, this would happen with flow through a
@@ -117,7 +121,7 @@ predicate jumpStep(Node n1, Node n2) {
117
121
or
118
122
n1.(DataFlow::PostUpdateNode).getPreUpdateNode() = v.getARead()
119
123
) and
120
- n2 = v.getARead()
124
+ jumpStepHelper(v, n2)
125
)
126
127
exists(SsaDefinition pred, SsaDefinition succ |
0 commit comments