mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[MOUNTMGR] Properly validate input buffer size
This avoids IOCTL_MOUNTMGR_QUERY_POINTS always failing
This commit is contained in:
parent
77657c22c9
commit
70d29ec423
1 changed files with 1 additions and 1 deletions
|
@ -1745,7 +1745,7 @@ MountMgrQueryPoints(IN PDEVICE_EXTENSION DeviceExtension,
|
|||
|
||||
/* We can't go beyond */
|
||||
if (((ULONG)MountPoint->SymbolicLinkNameLength + MountPoint->UniqueIdLength +
|
||||
MountPoint->DeviceNameLength) < Stack->Parameters.DeviceIoControl.InputBufferLength)
|
||||
MountPoint->DeviceNameLength) > Stack->Parameters.DeviceIoControl.InputBufferLength)
|
||||
{
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue