Skip to content

Commit 629a96c

Browse files
authored
Merge pull request #5 from jketema/cpp/use-flow-state-inout-barriers
C++: Revert changes to `cpp/constant-array-overflow`
2 parents a104600 + 75786e9 commit 629a96c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/src/experimental/Security/CWE/CWE-193/ConstantSizeArrayOffByOne.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ module ArrayAddressToDerefConfig implements DataFlow::StateConfigSig {
168168
)
169169
}
170170

171-
predicate isBarrierIn(DataFlow::Node node, FlowState state) { isSource(node, state) }
171+
predicate isBarrierIn(DataFlow::Node node) { isSource(node, _) }
172172

173-
predicate isBarrierOut(DataFlow::Node node, FlowState state) { isSink(node, state) }
173+
predicate isBarrierOut(DataFlow::Node node) { isSink(node, _) }
174174

175175
predicate isAdditionalFlowStep(
176176
DataFlow::Node node1, FlowState state1, DataFlow::Node node2, FlowState state2

0 commit comments

Comments
 (0)