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

Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com>
This commit is contained in:
ihsinme
2021-01-14 17:17:08 +03:00
committed by GitHub
parent 76b768f7e0
commit 4ba4de3d41

View File

@@ -23,7 +23,7 @@ void getPassword(void) {
}
SecureZeroMemory(pwd, sizeof(pwd));
}
// GOOD: in this case the memset will not be optimized.
// GOOD: in this case the memset will not be removed.
void getPassword(void) {
char pwd[64];
if (retrievePassword(pwd, sizeof(pwd))) {