Skip to content

Commit 5edc5e7

Browse files
committed
C++: Reflow comments in QLDoc.
1 parent a272eb8 commit 5edc5e7

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@
1818
* `allocation` to `a` this means that the `pai` will compute a pointer that is some number of elements beyond
1919
* the end position in the allocation. See `pointerAddInstructionHasBounds` for the implementation of this.
2020
*
21-
* In the above example, the pair `(a, b)` is `(base, size)` with `base` and `size` coming from the expression `base + size` on line 2, which is also the pointer-arithmetic instruction. In general, the pair does not necessarily correspond directly to the operands of the pointer-arithmetic instruction.
22-
* In the following example, the pair is again `(base, size)`, but with `base` coming from line 3 and `size` from line 2, and the
23-
* pointer-arithmetic instruction being `base + n` on line 3:
21+
* In the above example, the pair `(a, b)` is `(base, size)` with `base` and `size` coming from the expression
22+
* `base + size` on line 2, which is also the pointer-arithmetic instruction. In general, the pair does not necessarily
23+
* correspond directly to the operands of the pointer-arithmetic instruction.
24+
* In the following example, the pair is again `(base, size)`, but with `base` coming from line 3 and `size` from line 2,
25+
* and the pointer-arithmetic instruction being `base + n` on line 3:
2426
* ```cpp
2527
* 1. int* base = new int[size];
2628
* 2. if(n <= size) {

0 commit comments

Comments
 (0)