diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2018-10-08 21:40:40 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2018-10-10 09:31:38 +0200 |
commit | 4fea2089589bae73d5ed41b39142caac63519d98 (patch) | |
tree | 57ece0c003f36166cc59b957bc12c1dc102e0d1f | |
parent | 0b8b50bde9031f83389b7eb820737bf221d277cb (diff) | |
download | VeraCrypt-4fea2089589bae73d5ed41b39142caac63519d98.tar.gz VeraCrypt-4fea2089589bae73d5ed41b39142caac63519d98.zip |
Windows: zero TC_IOCTL_GET_SYSTEM_DRIVE_CONFIG input/output parameter as it is done for other IOCTLs
-rw-r--r-- | src/Common/BootEncryption.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Common/BootEncryption.cpp b/src/Common/BootEncryption.cpp index 1cfe6fd6..4992e086 100644 --- a/src/Common/BootEncryption.cpp +++ b/src/Common/BootEncryption.cpp @@ -1526,6 +1526,7 @@ namespace VeraCrypt bool BootEncryption::SystemDriveIsDynamic () { GetSystemDriveConfigurationRequest request; + memset (&request, 0, sizeof (request)); StringCchCopyW (request.DevicePath, ARRAYSIZE (request.DevicePath), GetSystemDriveConfiguration().DeviceKernelPath.c_str()); CallDriver (TC_IOCTL_GET_SYSTEM_DRIVE_CONFIG, &request, sizeof (request), &request, sizeof (request)); @@ -1898,6 +1899,7 @@ namespace VeraCrypt throw ParameterIncorrect (SRC_POS); GetSystemDriveConfigurationRequest request; + memset (&request, 0, sizeof (request)); StringCchCopyW (request.DevicePath, ARRAYSIZE (request.DevicePath), GetSystemDriveConfiguration().DeviceKernelPath.c_str()); CallDriver (TC_IOCTL_GET_SYSTEM_DRIVE_CONFIG, &request, sizeof (request), &request, sizeof (request)); |