mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
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:
@@ -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))) {
|
||||
|
||||
Reference in New Issue
Block a user