Skip to content

Commit 7f7930b

Browse files
MathiasVPjketema
andauthored
Update cpp/ql/src/experimental/Security/CWE/CWE-193/InvalidPointerDeref.ql
Co-authored-by: Jeroen Ketema <[email protected]>
1 parent af904f5 commit 7f7930b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/experimental/Security/CWE/CWE-193/InvalidPointerDeref.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* In order to do this, we split the problem into three subtasks:
3030
* 1. First, we find flow from `new int[size]` to `base + size`.
3131
* 2. Then, we find flow from `base + size` to `end` (on line 3).
32-
* 3. Finally, we use range-analysis to find a write to (or read from) a pointer that may be equal to `end`.
32+
* 3. Finally, we use range-analysis to find a write to (or read from) a pointer that may be greater than or equal to `end`.
3333
*
3434
* Step 1 is implemented in `AllocationToInvalidPointer.qll`, and step 2 is implemented by
3535
* `InvalidPointerToDereference.qll`. See those files for the description of these.

0 commit comments

Comments
 (0)