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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user