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

Skip to content

Commit 4ba4de3

Browse files
ihsinmeMathiasVP
andauthored
Update cpp/ql/src/experimental/Security/CWE/CWE-14/CompilerRemovalOfCodeToClearBuffers.c
Co-authored-by: Mathias Vorreiter Pedersen <[email protected]>
1 parent 76b768f commit 4ba4de3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void getPassword(void) {
2323
}
2424
SecureZeroMemory(pwd, sizeof(pwd));
2525
}
26-
// GOOD: in this case the memset will not be optimized.
26+
// GOOD: in this case the memset will not be removed.
2727
void getPassword(void) {
2828
char pwd[64];
2929
if (retrievePassword(pwd, sizeof(pwd))) {

0 commit comments

Comments
 (0)