Skip to content

Commit db8b506

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 88b7828 commit db8b506

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
@@ -16,7 +16,7 @@
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
1818
* `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.
19+
* the end position of the allocation. See `pointerAddInstructionHasBounds` for the implementation of this.
2020
*
2121
* In the above example, the pair `(a, b)` is `(base, size)` with `base` and `size` coming from the expression
2222
* `base + size` on line 2, which is also the pointer-arithmetic instruction. In general, the pair does not necessarily

0 commit comments

Comments
 (0)