mirror of
https://github.com/github/codeql.git
synced 2025-12-23 04:06:37 +01:00
C++: remove unneeded exists variables
This commit is contained in:
committed by
Robert Marsh
parent
6e230e10f8
commit
df4d156a36
@@ -146,12 +146,12 @@ module ArrayAddressToDerefConfig implements DataFlow::StateConfigSig {
|
||||
predicate isAdditionalFlowStep(
|
||||
DataFlow::Node node1, FlowState state1, DataFlow::Node node2, FlowState state2
|
||||
) {
|
||||
exists(PointerArithmeticInstruction pai, Variable v, int size, int delta |
|
||||
exists(PointerArithmeticInstruction pai, Variable v |
|
||||
state1 = TArray(v) and
|
||||
state2 = TOverflowArithmetic(pai) and
|
||||
pai.getLeft() = node1.asInstruction() and
|
||||
node2.asInstruction() = pai and
|
||||
pointerArithOverflow(pai, v, size, _, delta)
|
||||
pointerArithOverflow(pai, v, _, _, _)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user