mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-13 03:48:26 -06: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:
@@ -77,7 +77,7 @@ namespace VeraCrypt
|
||||
void Buffer::Erase ()
|
||||
{
|
||||
if (DataSize > 0)
|
||||
Memory::Erase (DataPtr, DataSize);
|
||||
burn (DataPtr, DataSize);
|
||||
}
|
||||
|
||||
void Buffer::Free ()
|
||||
|
||||
Reference in New Issue
Block a user