mirror of
https://github.com/github/codeql.git
synced 2025-12-21 03:06:31 +01:00
C++: 'Step 1' does not make a lot of sense now that the files have been split.
This commit is contained in:
@@ -18,8 +18,9 @@
|
|||||||
*
|
*
|
||||||
* Merely _constructing_ a pointer that's out-of-bounds is fine if the pointer is never dereferenced (in reality, the
|
* Merely _constructing_ a pointer that's out-of-bounds is fine if the pointer is never dereferenced (in reality, the
|
||||||
* standard only guarentees that it's safe to move the pointer one element past the last element. But we ignore that
|
* standard only guarentees that it's safe to move the pointer one element past the last element. But we ignore that
|
||||||
* here). So this step is about identifying which of those out-of-bounds pointers identified from step 1 that are
|
* here). So this step is about identifying which of those out-of-bounds pointers found by `pointerAddInstructionHasBounds`
|
||||||
* actually being dereferenced. We do this using a regular dataflow configuration (see `InvalidPointerToDerefConfig`).
|
* in `AllocationToInvalidPointer.qll` that are actually being dereferenced. We do this using a regular dataflow
|
||||||
|
* configuration (see `InvalidPointerToDerefConfig`).
|
||||||
*
|
*
|
||||||
* This dataflow traversal defines the set of sources as any dataflow node that is non-strictly lower-bounded by the
|
* This dataflow traversal defines the set of sources as any dataflow node that is non-strictly lower-bounded by the
|
||||||
* pointer-arithmetic instruction identified by `AllocationToInvalidPointer.qll`. That is, the set of sources is any
|
* pointer-arithmetic instruction identified by `AllocationToInvalidPointer.qll`. That is, the set of sources is any
|
||||||
|
|||||||
Reference in New Issue
Block a user