VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2020-07-14 00:40:03 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2020-07-14 00:40:56 +0200
commit2a915cd1e3eccca468364fea4fbe58e0bb8626f6 (patch)
treeb5cd6d44b4c8e6f2e5beb9a1e4a577065ac196d8
parent05f0004cf8a8a6e21383ec65b35f5bbc62906e4c (diff)
downloadVeraCrypt-DCS-2a915cd1e3eccca468364fea4fbe58e0bb8626f6.tar.gz
VeraCrypt-DCS-2a915cd1e3eccca468364fea4fbe58e0bb8626f6.zip
clear bootParams variable that may contain sensitive information when halting the system in case of fatal error (fix Github issue #21)
-rw-r--r--DcsInt/DcsInt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/DcsInt/DcsInt.c b/DcsInt/DcsInt.c
index b7e392f..45a611a 100644
--- a/DcsInt/DcsInt.c
+++ b/DcsInt/DcsInt.c
@@ -97,6 +97,10 @@ CleanSensitiveData()
if (SecRegionData != NULL) {
MEM_BURN(SecRegionData, SecRegionSize);
}
+
+ if (bootParams != NULL) {
+ MEM_BURN(bootParams, sizeof(*bootParams));
+ }
if (gAutoPassword != NULL) {
MEM_BURN(gAutoPassword, MAX_PASSWORD);