Skip to content

Commit e88277b

Browse files
Update cpp/ql/src/Security/CWE/CWE-193/InvalidPointerDeref.qhelp
Co-authored-by: mc <[email protected]>
1 parent abe28cb commit e88277b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/Security/CWE/CWE-193/InvalidPointerDeref.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</recommendation>
1414
<example>
1515
<p>The first example allocates a buffer of size <code>size</code> and creates a local variable that stores the location that is one byte past the end of the allocation.
16-
This local variable is then dereferenced which results in an out-of-bounds write.
16+
This local variable is then dereferenced, which results in an out-of-bounds write.
1717
The second example subtracts one from the <code>end</code> variable before dereferencing it. This subtraction ensures that the write correctly updates the final byte of the allocation.</p>
1818
<sample src="InvalidPointerDeref.cpp" />
1919

0 commit comments

Comments
 (0)