mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-10 13:13:34 +01: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:
parent
3f2e20e339
commit
f7d8e565b4
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user