VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Driver/Ntdriver.h
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-07-14 16:59:14 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-11-08 23:21:04 +0100
commit3137d36d9a29ed55be5837abf1be3f959f831abc (patch)
tree0fead35cac0844fabfdd429ee17bd48ce6520743 /src/Driver/Ntdriver.h
parent516fda09a7be48be29a0722aab490b9286e41e73 (diff)
downloadVeraCrypt-3137d36d9a29ed55be5837abf1be3f959f831abc.tar.gz
VeraCrypt-3137d36d9a29ed55be5837abf1be3f959f831abc.zip
Static Code Analysis : Use Safe string functions inside VeraCrypt Device Driver to avoid potential security issues. Add many checks for NULL pointers to handle low memory use cases.
Diffstat (limited to 'src/Driver/Ntdriver.h')
-rw-r--r--src/Driver/Ntdriver.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Driver/Ntdriver.h b/src/Driver/Ntdriver.h
index 66903b6c..5fc92843 100644
--- a/src/Driver/Ntdriver.h
+++ b/src/Driver/Ntdriver.h
@@ -125,8 +125,8 @@ void TCStopThread (PKTHREAD kThread, PKEVENT wakeUpEvent);
void TCStopVolumeThread (PDEVICE_OBJECT DeviceObject, PEXTENSION Extension);
VOID VolumeThreadProc (PVOID Context);
void TCSleep (int milliSeconds);
-void TCGetNTNameFromNumber (LPWSTR ntname, int nDriveNo);
-void TCGetDosNameFromNumber (LPWSTR dosname, int nDriveNo);
+void TCGetNTNameFromNumber (LPWSTR ntname, int cbNtName, int nDriveNo);
+void TCGetDosNameFromNumber (LPWSTR dosname, int cbDosName, int nDriveNo);
LPWSTR TCTranslateCode (ULONG ulCode);
void TCDeleteDeviceObject (PDEVICE_OBJECT DeviceObject, PEXTENSION Extension);
VOID TCUnloadDriver (PDRIVER_OBJECT DriverObject);