Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 97b2c38d authored by Mark Salyzyn's avatar Mark Salyzyn Committed by Gerrit - the friendly Code Review server
Browse files

ANDROID: Bluetooth: hidp: buffer overflow in hidp_process_report



The buffer length is unsigned at all layers, but gets cast to int and
checked in hidp_process_report and can lead to a buffer overflow.
Switch len parameter to unsigned int to resolve issue.

Signed-off-by: default avatarMark Salyzyn <salyzyn@google.com>
Fixes: 678af93e46ac10318b54f2f0c9abbdfe75c4e078 ("HID: Bluetooth: hidp: make sure input buffers are big enough")
Bug: 65853588
Change-Id: I779ce783ae7c3bce8c5a66c0954ef31347e42cfc
Git-repo: https://android.googlesource.com/kernel/msm


Git-commit: 34c56d552bffcaefa84975bea0e55fb4481964fd
Signed-off-by: default avatarDennis Cagle <dcagle@codeaurora.org>
parent 904fabdd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment