mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 02:05:50 +00:00
[NTOSKRNL]
- Implement a special case copy-in for IRP_MN_FILTER_RESOURCE_REQUIREMENTS to prevent NULL pointer access in function drivers svn path=/trunk/; revision=53304
This commit is contained in:
parent
5a658d1d36
commit
5f13171411
1 changed files with 8 additions and 0 deletions
|
@ -885,6 +885,14 @@ IopSynchronousCall(IN PDEVICE_OBJECT DeviceObject,
|
||||||
Irp->IoStatus.Status = IoStatusBlock.Status = STATUS_NOT_SUPPORTED;
|
Irp->IoStatus.Status = IoStatusBlock.Status = STATUS_NOT_SUPPORTED;
|
||||||
Irp->IoStatus.Information = IoStatusBlock.Information = 0;
|
Irp->IoStatus.Information = IoStatusBlock.Information = 0;
|
||||||
|
|
||||||
|
/* Special case for IRP_MN_FILTER_RESOURCE_REQUIREMENTS */
|
||||||
|
if (IoStackLocation->MinorFunction == IRP_MN_FILTER_RESOURCE_REQUIREMENTS)
|
||||||
|
{
|
||||||
|
/* Copy the resource requirements list into the IOSB */
|
||||||
|
Irp->IoStatus.Information =
|
||||||
|
IoStatusBlock.Information = (ULONG_PTR)IoStackLocation->Parameters.FilterResourceRequirements.IoResourceRequirementList;
|
||||||
|
}
|
||||||
|
|
||||||
/* Initialize the event */
|
/* Initialize the event */
|
||||||
KeInitializeEvent(&Event, SynchronizationEvent, FALSE);
|
KeInitializeEvent(&Event, SynchronizationEvent, FALSE);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue