From: Pierre Schweitzer Date: Fri, 6 Sep 2019 06:30:18 +0000 (+0200) Subject: [MOUNTMGR] Don't overrun output buffer in QueryPointsFromMemory X-Git-Tag: 0.4.14-dev~170 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=ff19ce934bf35768e3478bf484ed4935bb826eb3 [MOUNTMGR] Don't overrun output buffer in QueryPointsFromMemory --- diff --git a/drivers/filters/mountmgr/point.c b/drivers/filters/mountmgr/point.c index 77fc6fba95f..4c1d843db50 100644 --- a/drivers/filters/mountmgr/point.c +++ b/drivers/filters/mountmgr/point.c @@ -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; }