File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
cpp/ql/lib/semmle/code/cpp/security/InvalidPointerDereference Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments