diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-06-14 18:23:59 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-06-19 18:32:03 +0200 |
commit | 5d9d49e989fa619ad0cd36951c3ba17a6f765346 (patch) | |
tree | 2dd6ac9e0efa4f3b3be5de8d2a1152d0b6e4f979 /src/Format | |
parent | d31466ae7a55668a6b9a3b1eda82abcbfc58e9c6 (diff) | |
download | VeraCrypt-5d9d49e989fa619ad0cd36951c3ba17a6f765346.tar.gz VeraCrypt-5d9d49e989fa619ad0cd36951c3ba17a6f765346.zip |
Windows: in "VeraCrypt Format.exe", erase the volume PIM value after the process is finished to avoid displaying it again if the user starts a new creation process right after
Diffstat (limited to 'src/Format')
-rw-r--r-- | src/Format/Tcformat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Format/Tcformat.c b/src/Format/Tcformat.c index f088c498..0c50ad34 100644 --- a/src/Format/Tcformat.c +++ b/src/Format/Tcformat.c @@ -381,6 +381,7 @@ static void WipePasswordsAndKeyfiles (void) burn (&szVerify[0], sizeof (szVerify));
burn (&volumePassword, sizeof (volumePassword));
burn (&szRawPassword[0], sizeof (szRawPassword));
+ burn (&volumePin, sizeof (volumePin));
SetWindowText (hPasswordInputField, "");
SetWindowText (hVerifyPasswordInputField, "");
@@ -2694,6 +2695,7 @@ static void __cdecl volTransformThreadFunction (void *hwndDlgArg) // Clear the outer volume password
memset(&szVerify[0], 0, sizeof (szVerify));
memset(&szRawPassword[0], 0, sizeof (szRawPassword));
+ memset(&volumePin, 0, sizeof (volumePin));
MessageBeep (MB_OK);
}
@@ -9469,6 +9471,7 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, char *lpszComm VirtualLock (&volumePassword, sizeof(volumePassword));
VirtualLock (szVerify, sizeof(szVerify));
VirtualLock (szRawPassword, sizeof(szRawPassword));
+ VirtualLock (&volumePin, sizeof(volumePin));
VirtualLock (MasterKeyGUIView, sizeof(MasterKeyGUIView));
VirtualLock (HeaderKeyGUIView, sizeof(HeaderKeyGUIView));
|