mirror of
https://github.com/reactos/reactos.git
synced 2024-07-14 00:25:05 +00:00
- Ports are counted starting from 1, with 0 being an invalid port index. Remove memory corruption by actually allocating MAX_ROOT_PORTS + 1 sized array. Fixes Coverity CID: 601.
svn path=/trunk/; revision=36572
This commit is contained in:
parent
faf94f044e
commit
24430aea89
|
@ -208,7 +208,7 @@ typedef struct _HUB2_EXTENSION
|
|||
USB_HUB_STATUS hub_status;
|
||||
USB_PORT_STATUS port_status; //working data buf for get port feature
|
||||
|
||||
USB_PORT_STATUS rh_port_status[ EHCI_MAX_ROOT_PORTS ]; //working buf for get rh ports feature
|
||||
USB_PORT_STATUS rh_port_status[ EHCI_MAX_ROOT_PORTS + 1 ]; //working buf for get rh ports feature
|
||||
|
||||
UCHAR multiple_tt; // boolean
|
||||
ULONG tt_status_map[ 4 ]; // bit map to indicate the indexed tt's periodic buffer busy or not
|
||||
|
|
Loading…
Reference in a new issue