Skip to content

Commit 359a9e5

Browse files
committed
C++: 'Step 1' does not make a lot of sense now that the files have been split.
1 parent acb1310 commit 359a9e5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818
*
1919
* Merely _constructing_ a pointer that's out-of-bounds is fine if the pointer is never dereferenced (in reality, the
2020
* standard only guarentees that it's safe to move the pointer one element past the last element. But we ignore that
21-
* here). So this step is about identifying which of those out-of-bounds pointers identified from step 1 that are
22-
* actually being dereferenced. We do this using a regular dataflow configuration (see `InvalidPointerToDerefConfig`).
21+
* here). So this step is about identifying which of those out-of-bounds pointers found by `pointerAddInstructionHasBounds`
22+
* in `AllocationToInvalidPointer.qll` that are actually being dereferenced. We do this using a regular dataflow
23+
* configuration (see `InvalidPointerToDerefConfig`).
2324
*
2425
* This dataflow traversal defines the set of sources as any dataflow node that is non-strictly lower-bounded by the
2526
* pointer-arithmetic instruction identified by `AllocationToInvalidPointer.qll`. That is, the set of sources is any

0 commit comments

Comments
 (0)