Skip to content

Commit 13989db

Browse files
MathiasVPjketema
andauthored
Update cpp/ql/lib/semmle/code/cpp/security/InvalidPointerDereference/InvalidPointerToDereference.qll
Co-authored-by: Jeroen Ketema <[email protected]>
1 parent 099e11f commit 13989db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* `deltaDerefSinkAndDerefAddress >= 0`. The load attached to `*p` is the "operation". To ensure that the path makes
3838
* intuitive sense, we only pick operations that are control-flow reachable from the dereference sink.
3939
*
40-
* To compute the amount of the dereference is away from the final entry of the allocation, we sum the two deltas
40+
* To compute how many elements the dereference is beyond the end position of the allocation, we sum the two deltas
4141
* `deltaDerefSourceAndPai` and `deltaDerefSinkAndDerefAddress`. This is done in the `operationIsOffBy` predicate
4242
* (which is the only predicate exposed by this file).
4343
*

0 commit comments

Comments
 (0)