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

Skip to content

Commit 4075dac

Browse files
authored
Update cpp/ql/lib/semmle/code/cpp/security/InvalidPointerDereference/AllocationToInvalidPointer.qll
1 parent 369cee9 commit 4075dac

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
*
55
* Consider the following snippet:
66
* ```cpp
7-
* 1. char* begin = (char*)malloc(size);
8-
* 2. char* end = begin + size;
9-
* 3. for(int *p = begin; p <= end; p++) {
7+
* 1. char* base = (char*)malloc(size);
8+
* 2. char* end = base + size;
9+
* 3. for(int *p = base; p <= end; p++) {
1010
* 4. use(*p);
1111
* 5. }
1212
* ```

0 commit comments

Comments
 (0)