Skip to content

Commit 9aae174

Browse files
committed
C++: Move conjunct below comment.
1 parent 6d949cb commit 9aae174

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/lib/semmle/code/cpp/security/InvalidPointerDereference/AllocationToInvalidPointer.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,13 @@ private module SizeBarrier {
144144
*/
145145
Instruction getABarrierInstruction0(int delta, int k) {
146146
exists(IRGuardCondition g, ValueNumber value, Operand left, boolean edge, DataFlow::Node right |
147-
left = value.getAUse() and
148147
// We know:
149148
// 1. result <= value + delta (by `bounded`)
150149
// 2. value <= right + k (by `operandGuardChecks`).
151150
// So:
152151
// result <= value + delta (by 1.)
153152
// <= right + k + delta (by 2.)
153+
left = value.getAUse() and
154154
operandGuardChecks(pragma[only_bind_into](g), pragma[only_bind_into](left), right,
155155
pragma[only_bind_into](k), pragma[only_bind_into](edge)) and
156156
bounded(result, value.getAnInstruction(), delta) and

0 commit comments

Comments
 (0)