diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-07-12 19:46:30 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-07-13 23:35:11 +0200 |
commit | 8fc08b1e468482301fa5c31fcba742e24e197afc (patch) | |
tree | ee4066b756bc345ad1281f629c6bbda7902da975 | |
parent | b23cbf384fae16f4bb10bbec55bbd5b3fa7b79ef (diff) | |
download | VeraCrypt-8fc08b1e468482301fa5c31fcba742e24e197afc.tar.gz VeraCrypt-8fc08b1e468482301fa5c31fcba742e24e197afc.zip |
Windows: Solve failure to create hidden volume when PIM used for outer volume. Correctly wipe password variable from memory.
-rw-r--r-- | src/Format/Tcformat.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Format/Tcformat.c b/src/Format/Tcformat.c index 3e8fa7dd..bd83078f 100644 --- a/src/Format/Tcformat.c +++ b/src/Format/Tcformat.c @@ -2745,11 +2745,10 @@ static void __cdecl volTransformThreadFunction (void *hwndDlgArg) bHiddenVolFinished = FALSE;
nHiddenVolHostSize = nVolumeSize;
// Clear the outer volume password
- memset(&szVerify[0], 0, sizeof (szVerify));
- memset(&szRawPassword[0], 0, sizeof (szRawPassword));
- memset(&volumePim, 0, sizeof (volumePim));
+ burn(&szVerify[0], sizeof (szVerify));
+ burn(&szRawPassword[0], sizeof (szRawPassword));
MessageBeep (MB_OK);
}
|