Skip to content

Commit 680aeea

Browse files
authored
Merge pull request #14331 from asgerf/cpp/use-flow-state-inout-barriers
C++: use in/out barriers with flow state
2 parents 80031e5 + 54f2648 commit 680aeea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/src/Security/CWE/CWE-078/ExecTainted.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ module ExecTaintConfig implements DataFlow::StateConfigSig {
147147

148148
predicate isBarrier(DataFlow::Node node) { isBarrierImpl(node) }
149149

150-
predicate isBarrierOut(DataFlow::Node node) {
151-
isSink(node, _) // Prevent duplicates along a call chain, since `shellCommand` will include wrappers
150+
predicate isBarrierOut(DataFlow::Node node, FlowState state) {
151+
isSink(node, state) // Prevent duplicates along a call chain, since `shellCommand` will include wrappers
152152
}
153153

154154
predicate observeDiffInformedIncrementalMode() { any() }

0 commit comments

Comments
 (0)