mirror of
https://github.com/reactos/reactos.git
synced 2025-05-08 11:24:14 +00:00
[MOUNTMGR] Don't overrun output buffer in QueryPointsFromMemory
This commit is contained in:
parent
26a31b160a
commit
ff19ce934b
1 changed files with 2 additions and 0 deletions
|
@ -342,6 +342,8 @@ QueryPointsFromMemory(IN PDEVICE_EXTENSION DeviceExtension,
|
||||||
|
|
||||||
if (MountPoints->Size > Stack->Parameters.DeviceIoControl.OutputBufferLength)
|
if (MountPoints->Size > Stack->Parameters.DeviceIoControl.OutputBufferLength)
|
||||||
{
|
{
|
||||||
|
Irp->IoStatus.Information = sizeof(MOUNTMGR_MOUNT_POINTS);
|
||||||
|
|
||||||
return STATUS_BUFFER_OVERFLOW;
|
return STATUS_BUFFER_OVERFLOW;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue