...
This noncompliant code example uses the ZeroMemory() function provided by many versions of the Microsoft Visual Studio compiler.:
| Code Block | ||||
|---|---|---|---|---|
| ||||
void getPassword(void) {
char pwd[64];
if (retrievePassword(pwd, sizeof(pwd))) {
/* Checking of password, secure operations, etc. */
}
ZeroMemory(pwd, sizeof(pwd));
}
|
...