mirror of
https://github.com/github/codeql.git
synced 2025-12-23 20:26:32 +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(
|
predicate isAdditionalFlowStep(
|
||||||
DataFlow::Node node1, FlowState state1, DataFlow::Node node2, FlowState state2
|
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
|
state1 = TArray(v) and
|
||||||
state2 = TOverflowArithmetic(pai) and
|
state2 = TOverflowArithmetic(pai) and
|
||||||
pai.getLeft() = node1.asInstruction() and
|
pai.getLeft() = node1.asInstruction() and
|
||||||
node2.asInstruction() = pai and
|
node2.asInstruction() = pai and
|
||||||
pointerArithOverflow(pai, v, size, _, delta)
|
pointerArithOverflow(pai, v, _, _, _)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user