mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[MOUNTMGR] Fix pool memory disclosure in QueryPointsFromMemory (#3022)
This commit is contained in:
parent
61d89dec8e
commit
9adcacdbc8
1 changed files with 1 additions and 0 deletions
|
@ -335,6 +335,7 @@ QueryPointsFromMemory(IN PDEVICE_EXTENSION DeviceExtension,
|
|||
/* Now, ensure output buffer can hold everything */
|
||||
Stack = IoGetCurrentIrpStackLocation(Irp);
|
||||
MountPoints = (PMOUNTMGR_MOUNT_POINTS)Irp->AssociatedIrp.SystemBuffer;
|
||||
RtlZeroMemory(MountPoints, Stack->Parameters.DeviceIoControl.OutputBufferLength);
|
||||
|
||||
/* Ensure we set output to let user reallocate! */
|
||||
MountPoints->Size = sizeof(MOUNTMGR_MOUNT_POINTS) + TotalSymLinks * sizeof(MOUNTMGR_MOUNT_POINT) + TotalSize;
|
||||
|
|
Loading…
Reference in a new issue