- 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:
Aleksey Bragin 2008-09-28 11:05:18 +00:00
parent faf94f044e
commit 24430aea89

View file

@ -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