mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-05-17 18:11:30 +00:00
Linux/MacOSX: Erase sensitive memory explicitly instead of relying on the compiler not optimizing calls to method Memory::Erase
This commit is contained in:
@@ -233,7 +233,7 @@ namespace VeraCrypt
|
||||
|
||||
str.clear();
|
||||
str.insert (0, &buf.front(), size);
|
||||
Memory::Erase (&buf.front(), buf.size());
|
||||
burn (&buf.front(), buf.size());
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user