mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Windows Driver Sanity check: check that the password length passed from the bootloader is less than or equal to 64 before using it.
This commit is contained in:
@@ -97,6 +97,9 @@ NTSTATUS LoadBootArguments ()
|
||||
TC_BUG_CHECK (STATUS_CRC_ERROR);
|
||||
}
|
||||
|
||||
// Sanity check: for valid boot argument, the password is less than 64 bytes long
|
||||
if (bootArguments->BootPassword.Length <= MAX_PASSWORD)
|
||||
{
|
||||
BootLoaderSegment = bootLoaderSegment;
|
||||
|
||||
BootArgs = *bootArguments;
|
||||
@@ -120,6 +123,7 @@ NTSTATUS LoadBootArguments ()
|
||||
|
||||
status = STATUS_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
||||
MmUnmapIoSpace (mappedBootArgs, sizeof (BootArguments));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user