1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2026-06-21 03:55:02 -05: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:
Mounir IDRASSI
2020-06-28 00:59:57 +02:00
parent fded83d25c
commit 885cc1d01d
7 changed files with 5 additions and 15 deletions
+1 -1
View File
@@ -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 (...)
{