VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Driver/Ntdriver.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-02-08 23:41:37 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-02-09 11:01:16 +0100
commit516da2229d66232f8c6ad84f5fecbdfc8c8f9f67 (patch)
tree692199bfe2d61f553d738eccab77c6f0bf557e17 /src/Driver/Ntdriver.c
parent28a9eaf0e3e516e61e7a0585e6b7c9e7465bd342 (diff)
downloadVeraCrypt-516da2229d66232f8c6ad84f5fecbdfc8c8f9f67.tar.gz
VeraCrypt-516da2229d66232f8c6ad84f5fecbdfc8c8f9f67.zip
Static Code Analysis: in Windows Driver, avoid using uninitialized stack memory as random and use proper random value for wipe operation. Solve potential double-free issue.
Diffstat (limited to 'src/Driver/Ntdriver.c')
-rw-r--r--src/Driver/Ntdriver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Driver/Ntdriver.c b/src/Driver/Ntdriver.c
index 7535ed21..86f3d9eb 100644
--- a/src/Driver/Ntdriver.c
+++ b/src/Driver/Ntdriver.c
@@ -1709,7 +1709,7 @@ void TCStopVolumeThread (PDEVICE_OBJECT DeviceObject, PEXTENSION Extension)
{
NTSTATUS ntStatus;
- if (DeviceObject); /* Remove compiler warning */
+ UNREFERENCED_PARAMETER (DeviceObject); /* Remove compiler warning */
Dump ("Signalling thread to quit...\n");