diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2020-06-28 00:59:57 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2020-06-28 01:06:39 +0200 |
commit | 885cc1d01d569b9a7b702aa81a2308c88a4e309c (patch) | |
tree | d9fbf25a97060ee6c96bdb7591feb6fc8eaec581 /src/Platform/StringConverter.cpp | |
parent | fded83d25cf8f8b4bbd80a1250c4777063ddc221 (diff) | |
download | VeraCrypt-885cc1d01d569b9a7b702aa81a2308c88a4e309c.tar.gz VeraCrypt-885cc1d01d569b9a7b702aa81a2308c88a4e309c.zip |
Linux/MacOSX: Erase sensitive memory explicitly instead of relying on the compiler not optimizing calls to method Memory::Erase
Diffstat (limited to 'src/Platform/StringConverter.cpp')
-rw-r--r-- | src/Platform/StringConverter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Platform/StringConverter.cpp b/src/Platform/StringConverter.cpp index 6975bb39..e1a6df98 100644 --- a/src/Platform/StringConverter.cpp +++ b/src/Platform/StringConverter.cpp @@ -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 (...) { |