OSDN Git Service

Add missing AVRCP message length checks inside avrc_msg_cback
authorPavlin Radoslavov <pavlin@google.com>
Thu, 9 Aug 2018 20:07:48 +0000 (13:07 -0700)
committerPavlin Radoslavov <pavlin@google.com>
Thu, 9 Aug 2018 20:50:40 +0000 (20:50 +0000)
commit007868d05f4b761842c7345161aeda6fd40dd245
tree5548c3264fbc9b1cc02baaeb6a60869d35e80430
parent0d4898a05dda44555595714a25d4f945e49205bd
Add missing AVRCP message length checks inside avrc_msg_cback

Explicitly check the length of the received message before
accessing the data.

Bug: 111803925
Bug: 79883824
Test: POC scripts
Change-Id: I00b1c6bd6dd7e18ac2c469ef2032c7ff10dcaecb
Merged-In: I00b1c6bd6dd7e18ac2c469ef2032c7ff10dcaecb
(cherry picked from commit 282deb3e27407aaa88b8ddbdbd7bb7d56ddc635f)
stack/avrc/avrc_api.cc