Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a7ee27e

Browse files
committed
C++: Fix 'begin'/'base' confusion.
1 parent 6c3c4c3 commit a7ee27e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* any dataflow node `n` such that `addr <= sink.asInstruction() + delta2` for some `delta2`. We call the instruction that
3131
* consumes the address operand the "operation".
3232
*
33-
* For example, consider the flow from `begin + size` to `end` above. The sink is `end` on line 3 because that is a dataflow
33+
* For example, consider the flow from `base + size` to `end` above. The sink is `end` on line 3 because that is a dataflow
3434
* node whose underlying instruction non-strictly upper bounds the address operand `p` in `use(*p)`. The load attached to `*p`
3535
* is the "operation". To ensure that the path makes intuitive sense, we only pick operations that are control-flow reachable
3636
* from the dereference sink.

0 commit comments

Comments
 (0)