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)
committerRyan Longair <rlongair@google.com>
Wed, 15 Aug 2018 22:30:56 +0000 (15:30 -0700)
commit2df002886ae629d73d8d4710baa0c37a51318731
tree58553494285106eab16fb0ac9f31ef698cd377e9
parent240a97f180054da4824ed36c93abf273f27a7071
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)
(cherry picked from commit 007868d05f4b761842c7345161aeda6fd40dd245)
stack/avrc/avrc_api.cc