mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
fix(bt/bluedroid): ignore AVCT commands that are too long
This commit is contained in:
@@ -526,7 +526,7 @@ static void avrc_msg_cback(UINT8 handle, UINT8 label, UINT8 cr,
|
||||
tAVRC_MSG_VENDOR *p_msg = &msg.vendor;
|
||||
|
||||
if (cr == AVCT_CMD &&
|
||||
(p_pkt->layer_specific & AVCT_DATA_CTRL && AVRC_PACKET_LEN < sizeof(p_pkt->len))) {
|
||||
(p_pkt->layer_specific & AVCT_DATA_CTRL && AVRC_PACKET_LEN < p_pkt->len)) {
|
||||
/* Ignore the invalid AV/C command frame */
|
||||
#if (BT_USE_TRACES == TRUE)
|
||||
p_drop_msg = "dropped - too long AV/C cmd frame size";
|
||||
|
||||
Reference in New Issue
Block a user