mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 17:00:51 +08:00
[MOUNTMGR] Don't overrun output buffer in QueryPointsFromMemory
This commit is contained in:
@@ -342,6 +342,8 @@ QueryPointsFromMemory(IN PDEVICE_EXTENSION DeviceExtension,
|
||||
|
||||
if (MountPoints->Size > Stack->Parameters.DeviceIoControl.OutputBufferLength)
|
||||
{
|
||||
Irp->IoStatus.Information = sizeof(MOUNTMGR_MOUNT_POINTS);
|
||||
|
||||
return STATUS_BUFFER_OVERFLOW;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user