avrcp: Fix not checking if params_len match number of received bytes
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 30 Apr 2021 01:18:57 +0000 (18:18 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:35 +0000 (19:08 +0530)
commit8b8d8ca93d7a2bbbdecf9e4a2e4ffa099e347cec
tree79e3f6c729fea6feac5de679c14cbcae4e26349e
parentab4537ec190de3bf0f87146ba9c999df3ae35ebd
avrcp: Fix not checking if params_len match number of received bytes

This makes sure the number of bytes in the params_len matches the
remaining bytes received so the code don't end up accessing invalid
memory.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
profiles/audio/avrcp.c