Skip to content

Commit f0ab3a3

Browse files
MathiasVPjketema
andauthored
Update cpp/ql/lib/semmle/code/cpp/security/InvalidPointerDereference/AllocationToInvalidPointer.qll
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com>
1 parent 8ab2f89 commit f0ab3a3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
* This is done using the product-flow library. The configuration tracks flow from the pair
1616
* `(allocation, size of allocation)` to a pair `(a, b)` where there exists a pointer-arithmetic instruction
1717
* `pai = a + r` such that `b` is a dataflow node where `b <= r`. Because there will be a dataflow-path from
18-
* `allocation` to `a` this means that the `pai` will compute a pointer that's some number of elements away
19-
* from the end position in the allocation. See `pointerAddInstructionHasBounds` for the implementation of this.
18+
* `allocation` to `a` this means that the `pai` will compute a pointer that is some number of elements beyond
19+
* the end position in the allocation. See `pointerAddInstructionHasBounds` for the implementation of this.
2020
*
2121
* In the above example, the pair `(a, b)` is `(base, size)` from the expression `base + size` on line 2. However, it could
2222
* also be something more complex like `(base, size)` where `base` is from line 3 and `size` is from line 2, and the

0 commit comments

Comments
 (0)