diff options
author | Julius Werner <jwerner@chromium.org> | 2013-07-19 20:12:08 (GMT) |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2013-08-26 19:56:34 (GMT) |
commit | eaf3e613ea6f0dc95c94a93997ad62785fe2969c (patch) | |
tree | 37cad21b6993b25dc9b82245cc84ec4db0780713 /drivers/dfu | |
parent | 1572eadfbc8e0ec7e6a4b80034eb4c30abe96739 (diff) | |
download | u-boot-eaf3e613ea6f0dc95c94a93997ad62785fe2969c.tar.xz |
usb: Use well-known descriptor sizes when parsing configuration
The existing USB configuration parsing code relies on the descriptors'
own length values when reading through the configuration blob. Since the
size of those descriptors is always well-defined, we should rather use
the known sizes instead of trusting device-provided values to be
correct. Also adds some safety to potential out-of-order descriptors.
Change-Id: I16f69dfdd6793aa0fe930b5148d4521f3e5c3090
Signed-off-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'drivers/dfu')
0 files changed, 0 insertions, 0 deletions