mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03: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;
|
tAVRC_MSG_VENDOR *p_msg = &msg.vendor;
|
||||||
|
|
||||||
if (cr == AVCT_CMD &&
|
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 */
|
/* Ignore the invalid AV/C command frame */
|
||||||
#if (BT_USE_TRACES == TRUE)
|
#if (BT_USE_TRACES == TRUE)
|
||||||
p_drop_msg = "dropped - too long AV/C cmd frame size";
|
p_drop_msg = "dropped - too long AV/C cmd frame size";
|
||||||
|
|||||||
Reference in New Issue
Block a user