Skip to content

Commit 88d3fcb

Browse files
committed
C++: Fix comment.
1 parent 3d5b198 commit 88d3fcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ private module SizeBarrier {
169169
exists(int delta, int k |
170170
state > k + delta and
171171
// result <= "size of allocation" + delta + k
172-
// <= "size of allocation" + state
172+
// < "size of allocation" + state
173173
result = getABarrierInstruction0(delta, k)
174174
)
175175
}
@@ -198,7 +198,7 @@ private module SizeBarrier {
198198
state > k + delta
199199
// so now we have:
200200
// result <= "size of allocation" + delta + k
201-
// <= "size of allocation" + state
201+
// < "size of allocation" + state
202202
)
203203
}
204204
}

0 commit comments

Comments
 (0)