Skip to content

Commit df4d156

Browse files
committed
C++: remove unneeded exists variables
1 parent 6e230e1 commit df4d156

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
@@ -146,12 +146,12 @@ module ArrayAddressToDerefConfig implements DataFlow::StateConfigSig {
146146
predicate isAdditionalFlowStep(
147147
DataFlow::Node node1, FlowState state1, DataFlow::Node node2, FlowState state2
148148
) {
149-
exists(PointerArithmeticInstruction pai, Variable v, int size, int delta |
149+
exists(PointerArithmeticInstruction pai, Variable v |
150150
state1 = TArray(v) and
151151
state2 = TOverflowArithmetic(pai) and
152152
pai.getLeft() = node1.asInstruction() and
153153
node2.asInstruction() = pai and
154-
pointerArithOverflow(pai, v, size, _, delta)
154+
pointerArithOverflow(pai, v, _, _, _)
155155
)
156156
}
157157
}

0 commit comments

Comments
 (0)