1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-12 03:18:26 -06:00

Linux/MacOSX: explicitely clear saved password from memory at last step of volume creation wizard

This commit is contained in:
Mounir IDRASSI
2020-06-22 10:38:59 +02:00
parent 05b3cd5cc1
commit 4a5d1f4f46

View File

@@ -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: