OSDN Git Service

DO NOT MERGE: Add missing AVRCP message length checks inside avrc_msg_cback
authorPavlin Radoslavov <pavlin@google.com>
Thu, 9 Aug 2018 20:40:54 +0000 (13:40 -0700)
committerRyan Longair <rlongair@google.com>
Wed, 15 Aug 2018 20:24:05 +0000 (13:24 -0700)
commitb8e055baf74352311545780814cb2d7359ceb93f
tree7dc2a1a18695d2023a3ee25129614c8b896d41a4
parentb8cf11d80124861b321271b7a01aafbba9cb7e9d
DO NOT MERGE: 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: I50d1d1f7dd7038ffcd5f0d5975ab1db43178067f
Merged-In: I00b1c6bd6dd7e18ac2c469ef2032c7ff10dcaecb
(cherry picked from commit b78d265f362dab7df559883617dd766bcc60ad43)
stack/avrc/avrc_api.c