VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Format/Tcformat.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-07-12 19:46:30 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-07-13 23:35:11 +0200
commit8fc08b1e468482301fa5c31fcba742e24e197afc (patch)
treeee4066b756bc345ad1281f629c6bbda7902da975 /src/Format/Tcformat.c
parentb23cbf384fae16f4bb10bbec55bbd5b3fa7b79ef (diff)
downloadVeraCrypt-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.
Diffstat (limited to 'src/Format/Tcformat.c')
-rw-r--r--src/Format/Tcformat.c5
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
@@ -2746,9 +2746,8 @@ static void __cdecl volTransformThreadFunction (void *hwndDlgArg)
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);
}