[MOUNTMGR] Don't overrun output buffer in QueryPointsFromMemory

This commit is contained in:
Pierre Schweitzer 2019-09-06 08:30:18 +02:00
parent 26a31b160a
commit ff19ce934b
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -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;
}