VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/Forms/VolumeCreationWizard.cpp
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2020-06-22 08:38:59 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2020-06-23 14:48:39 (GMT)
commit4a5d1f4f461a7f007dd2094a2930d262fb0628e0 (patch)
tree755c1e0b4be976526f72851571dac5d69d606a99 /src/Main/Forms/VolumeCreationWizard.cpp
parent05b3cd5cc1c45df594d59e73cc1b693d9e79abc9 (diff)
downloadVeraCrypt-4a5d1f4f461a7f007dd2094a2930d262fb0628e0.zip
VeraCrypt-4a5d1f4f461a7f007dd2094a2930d262fb0628e0.tar.gz
Linux/MacOSX: explicitely clear saved password from memory at last step of volume creation wizard
Diffstat (limited to 'src/Main/Forms/VolumeCreationWizard.cpp')
-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 572523e..dd5c4db 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: