Changeset 32cd37f in mainline


Ignore:
Timestamp:
2011-10-12T13:00:03Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
21881bd8
Parents:
bd830128
Message:

Fix stack buffer overflow.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbhub/usbhub.c

    rbd830128 r32cd37f  
    242242            USB_REQUEST_TYPE_CLASS, USB_REQUEST_RECIPIENT_DEVICE,
    243243            USB_DESCTYPE_HUB, 0, 0, &descriptor,
    244             sizeof(usb_hub_descriptor_t), &received_size);
     244            sizeof(usb_hub_descriptor_header_t), &received_size);
    245245        if (opResult != EOK) {
    246246                usb_log_error("Failed to receive hub descriptor: %s.\n",
Note: See TracChangeset for help on using the changeset viewer.