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

Skip to content

Commit 76b768f

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 4631658 commit 76b768f

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
@@ -15,7 +15,7 @@ void getPassword(void) {
1515
}
1616
memset_s(pwd, 0, sizeof(pwd));
1717
}
18-
// GOOD: in this case the memset will not be optimized.
18+
// GOOD: in this case the memset will not be removed.
1919
void getPassword(void) {
2020
char pwd[64];
2121
if (retrievePassword(pwd, sizeof(pwd))) {

0 commit comments

Comments
 (0)