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

Skip to content

Commit 4631658

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 9e3b288 commit 4631658

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
@@ -6,7 +6,7 @@ void getPassword(void) {
66
}
77
memset(pwd, 0, sizeof(pwd));
88
}
9-
// GOOD: in this case the memset will not be optimized.
9+
// GOOD: in this case the memset will not be removed.
1010
void getPassword(void) {
1111
char pwd[64];
1212

0 commit comments

Comments
 (0)