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:16:37 +03:00
committed by GitHub
parent 9e3b288f33
commit 4631658e5e

View File

@@ -6,7 +6,7 @@ void getPassword(void) {
}
memset(pwd, 0, 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];