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:21 +03:00
committed by GitHub
parent b26a90e1e6
commit 9e3b288f33

View File

@@ -1,4 +1,4 @@
// BAD: the memset call will probably be optimized.
// BAD: the memset call will probably be removed.
void getPassword(void) {
char pwd[64];
if (GetPassword(pwd, sizeof(pwd))) {