Parent: c944e5f1940930d64ce92be591700b0f84080c36
Author: Marijn Suijten <marijn.suijten@somainline.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2021-08-09 23:33:53
Tree: f78a40f98636eaba168598ce0024c4f436f0599a
audio/avrcp: Use host/network order as appropriate for pdu->params_len When comparing against or writing to pdu->params_len to enforce matching length with total packet length, take into account that pdu->params_len is in network order (big endian) while packet size (operand_count) is in host order (usually little endian). This silently breaks a number of AVRCP commands that perform a quick length check based on params_len and bail if it doesn't match exactly. Fixes: e2b0f0d8d ("avrcp: Fix not checking if params_len match number of received bytes")
Diffstat
| M | profiles/audio/avrcp.c | | | 4 | ++- - |
1 files changed, 2 insertions(+), 2 deletions(-)