diff options
author | Masakazu Mokuno <[email protected]> | 2017-11-10 01:25:50 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2017-11-28 15:17:49 +0100 |
commit | 81cf4a45360f70528f1f64ba018d61cb5767249a (patch) | |
tree | 2a887a07dc7d4d7e10d6ee723bb1dce46ed6ac86 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 1d5a31582ef046d3b233f0da1a68ae26519b2f0a (diff) |
USB: core: Add type-specific length check of BOS descriptors
As most of BOS descriptors are longer in length than their header
'struct usb_dev_cap_header', comparing solely with it is not sufficient
to avoid out-of-bounds access to BOS descriptors.
This patch adds descriptor type specific length check in
usb_get_bos_descriptor() to fix the issue.
Signed-off-by: Masakazu Mokuno <[email protected]>
Cc: stable <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions