Diff between 23d0af616b2dfb59f0145838a00811eab8e38a48 and 6bc64be14b9c1cbcf046b6061087b2b9e3a7f5d5
Changed Files
| File | Additions | Deletions | Status |
| profiles/audio/avrcp.c | +3 | -1 | modified |
Full Patch
diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
index 076766d..787643c 100644
--- a/profiles/audio/avrcp.c
+++ b/profiles/audio/avrcp.c
@@ -2655,8 +2655,10 @@ static gboolean avrcp_set_browsed_player_rsp(struct avctp *conn,
uint8_t len;
len = pdu->params[i++];
+ if (!len)
+ continue;
- if (i + len > operand_count || len == 0) {
+ if (i + len > operand_count) {
error("Invalid folder length");
break;
}