VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2020-06-22 10:38:59 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2020-06-23 16:48:39 +0200
commit4a5d1f4f461a7f007dd2094a2930d262fb0628e0 (patch)
tree755c1e0b4be976526f72851571dac5d69d606a99 /src
parent05b3cd5cc1c45df594d59e73cc1b693d9e79abc9 (diff)
downloadVeraCrypt-4a5d1f4f461a7f007dd2094a2930d262fb0628e0.tar.gz
VeraCrypt-4a5d1f4f461a7f007dd2094a2930d262fb0628e0.zip
Linux/MacOSX: explicitely clear saved password from memory at last step of volume creation wizard
Diffstat (limited to 'src')
-rw-r--r--src/Main/Forms/VolumeCreationWizard.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Main/Forms/VolumeCreationWizard.cpp b/src/Main/Forms/VolumeCreationWizard.cpp
index 572523e7..dd5c4dbf 100644
--- a/src/Main/Forms/VolumeCreationWizard.cpp
+++ b/src/Main/Forms/VolumeCreationWizard.cpp
@@ -58,6 +58,7 @@ namespace VeraCrypt
SelectedVolumeHostType (VolumeHostType::File),
SelectedVolumeType (VolumeType::Normal),
Pim (0),
+ OuterPim (0),
SectorSize (0),
VolumeSize (0)
{
@@ -1082,6 +1083,12 @@ namespace VeraCrypt
Creator.reset();
SetCancelButtonText (L"");
+ // clear saved credentials
+ Password.reset();
+ OuterPassword.reset();
+ burn (&Pim, sizeof (Pim));
+ burn (&OuterPim, sizeof (OuterPim));
+
return Step::VolumeHostType;
case Step::OuterVolumeContents: