Skip to content

Commit 75786e9

Browse files
committed
C++: Revert changes to cpp/constant-array-overflow
It is not clear that this does what we want here, and the query is severly broken in any case.
1 parent a104600 commit 75786e9

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)