mirror of
https://github.com/reactos/reactos.git
synced 2024-11-23 11:33:31 +08:00
[MOUNTMGR] Properly validate input buffer size
This avoids IOCTL_MOUNTMGR_QUERY_POINTS always failing
This commit is contained in:
parent
77657c22c9
commit
70d29ec423
@ -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 New Issue
Block a user