From 4fea2089589bae73d5ed41b39142caac63519d98 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Mon, 8 Oct 2018 21:40:40 +0200 Subject: Windows: zero TC_IOCTL_GET_SYSTEM_DRIVE_CONFIG input/output parameter as it is done for other IOCTLs --- src/Common/BootEncryption.cpp | 2 ++ 1 file changed, 2 insertions(+) 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)); -- cgit v1.2.3