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)
committerandroid-build-team Robot <android-build-team-robot@google.com>
Thu, 16 Aug 2018 01:24:22 +0000 (01:24 +0000)
commit1c5192ce7735170c043912828db1e502c643004b
treeb19b7c2e05fea001cb8dcf2371be81f1f9e3d1ea
parente6fa120750438de815e9db403b68a2643fc03762
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