Author: janderwald
Date: Sun Feb 22 10:16:46 2015
New Revision: 66401
URL:
http://svn.reactos.org/svn/reactos?rev=66401&view=rev
Log:
[KS]
- dont access pin descriptor beyond size
- found with special pool
Modified:
trunk/reactos/drivers/ksfilter/ks/connectivity.c
Modified: trunk/reactos/drivers/ksfilter/ks/connectivity.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/ksfilter/ks/connec…
==============================================================================
--- trunk/reactos/drivers/ksfilter/ks/connectivity.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/ksfilter/ks/connectivity.c [iso-8859-1] Sun Feb 22 10:16:46
2015
@@ -350,6 +350,13 @@
return STATUS_INVALID_PARAMETER;
}
}
+ else
+ {
+ (*(PULONG)Buffer) = DescriptorsCount;
+ Irp->IoStatus.Information = sizeof(ULONG);
+ return STATUS_SUCCESS;
+ }
+
if (DescriptorSize == sizeof(KSPIN_DESCRIPTOR))
{
@@ -364,11 +371,6 @@
switch(Property->Id)
{
- case KSPROPERTY_PIN_CTYPES:
- (*(PULONG)Buffer) = DescriptorsCount;
- Irp->IoStatus.Information = sizeof(ULONG);
- Status = STATUS_SUCCESS;
- break;
case KSPROPERTY_PIN_DATAFLOW:
Size = sizeof(KSPIN_DATAFLOW);