We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da39c9f commit dc88f71Copy full SHA for dc88f71
cpp/ql/lib/semmle/code/cpp/controlflow/StackVariableReachability.qll
@@ -80,7 +80,11 @@ abstract class StackVariableReachability extends string {
80
j > i and
81
sink = bb.getNode(j) and
82
this.isSink(sink, v) and
83
- not exists(int k | this.isBarrier(bb.getNode(k), v) | k in [i + 1 .. j - 1])
+ not exists(int k, ControlFlowNode node |
84
+ node = bb.getNode(k) and this.isBarrier(pragma[only_bind_into](node), v)
85
+ |
86
+ k in [i + 1 .. j - 1]
87
+ )
88
)
89
or
90
not exists(int k | this.isBarrier(bb.getNode(k), v) | k > i) and
0 commit comments