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

Skip to content

Commit 3e715ff

Browse files
ihsinmeMathiasVP
andauthored
Update cpp/ql/src/experimental/Security/CWE/CWE-14/CompilerRemovalOfCodeToClearBuffers.qhelp
Co-authored-by: Mathias Vorreiter Pedersen <[email protected]>
1 parent 0d0ea0c commit 3e715ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp/ql/src/experimental/Security/CWE/CWE-14/CompilerRemovalOfCodeToClearBuffers.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<qhelp>
55
<overview>
66
<p>Compiler optimization will exclude the cleaning of private information.
7-
Using the memset function to clear private data as a final expression when working with a variable is potentially dangerous, since the compiler can optimize this call.
7+
Using the <code>memset</code> function to clear private data in a variable that has no subsequent use is potentially dangerous, since the compiler can remove the call.
88
For some compilers, optimization is also possible when using calls to free memory after the <code>memset</codee> function.</p>
99

1010
<p>It is possible to miss detection of vulnerabilities if used to clear fields of structures or parts of a buffer.</p>

0 commit comments

Comments
 (0)