mirror of
https://github.com/reactos/reactos.git
synced 2024-08-13 06:37:06 +00:00
[usbehci]
- Use the correct offset of ROOTHUB2_CONFIGURATION_DESCRIPTOR and ROOTHUB2_INTERFACE_DESCRIPTOR to calculate needed buffer sizes. Fixes a buffer overflow crash. svn path=/trunk/; revision=47845
This commit is contained in:
parent
c3b4cac97a
commit
f4962e7c69
|
@ -394,11 +394,11 @@ PdoDispatchPnp(
|
|||
USB_POOL_TAG);
|
||||
|
||||
RootHubDevice->Configs[0] = ExAllocatePoolWithTag(NonPagedPool,
|
||||
sizeof(USB_CONFIGURATION) + sizeof(PVOID) * ROOTHUB2_CONFIGURATION_DESCRIPTOR[5],
|
||||
sizeof(USB_CONFIGURATION) + sizeof(PVOID) * ROOTHUB2_CONFIGURATION_DESCRIPTOR[4],
|
||||
USB_POOL_TAG);
|
||||
|
||||
RootHubDevice->Configs[0]->Interfaces[0] = ExAllocatePoolWithTag(NonPagedPool,
|
||||
sizeof(USB_INTERFACE) + sizeof(PVOID) * ROOTHUB2_INTERFACE_DESCRIPTOR[3],
|
||||
sizeof(USB_INTERFACE) + sizeof(PVOID) * ROOTHUB2_INTERFACE_DESCRIPTOR[4],
|
||||
USB_POOL_TAG);
|
||||
|
||||
RootHubDevice->Configs[0]->Interfaces[0]->EndPoints[0] = ExAllocatePoolWithTag(NonPagedPool,
|
||||
|
|
Loading…
Reference in a new issue