mirror of
https://github.com/reactos/reactos.git
synced 2025-01-15 18:43:27 +00:00
[MOUNTMGR] Fix buffer length checking
Found by Vadim Galiant. CORE-15549
This commit is contained in:
parent
6d89d19f39
commit
d84ab9ec7c
1 changed files with 1 additions and 1 deletions
|
@ -265,7 +265,7 @@ MountMgrCreatePoint(IN PDEVICE_EXTENSION DeviceExtension,
|
|||
|
||||
MaxLength = MAX((Point->DeviceNameOffset + Point->DeviceNameLength),
|
||||
(Point->SymbolicLinkNameLength + Point->SymbolicLinkNameOffset));
|
||||
if (MaxLength >= Stack->Parameters.DeviceIoControl.InputBufferLength)
|
||||
if (MaxLength > Stack->Parameters.DeviceIoControl.InputBufferLength)
|
||||
{
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue