commit | a1dc371d6680c19f978ea6c20f3ef8c70d2bad59 | [log] [tgz] |
---|---|---|
author | Jack Hsieh <chengweih@chromium.org> | Fri Jan 21 00:01:43 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jan 21 00:01:43 2022 |
tree | ef4b6eb4d894d14f04ba78b8bcc86a8d3f87711f | |
parent | a841c9605d1d6c294bd5098a870d12a1a98a4a29 [diff] |
usb: Fix OOB access with non-sequential interfaces When accessing a usb device with non-sequential interface number or alternative setting value, it might end up using index out of the internal array allocated size. It is caused by using incorrect parameters (i.e interface_number and alternate_setting) into the callback which expects taking interface_index and alternate_index. Fix it by passing the correct parameters which are already available in the function to the callback. Bug: 1286816 Change-Id: I6b3533f944f94e94e63959b99718858e089449da Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3384715 Reviewed-by: Reilly Grant <reillyg@chromium.org> Commit-Queue: Jack Hsieh <chengweih@chromium.org> Cr-Commit-Position: refs/heads/main@{#961679}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.