mirror of
https://github.com/reactos/reactos.git
synced 2026-06-02 17:31:23 +08:00
[MOUNTMGR] Fix buffer length checking
Found by Vadim Galiant. CORE-15549
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user