linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ 1/5 v2] AVRCP: Fix reading wrong field as folder depth
@ 2013-03-07 15:11 Luiz Augusto von Dentz
  2013-03-07 15:11 ` [PATCH BlueZ 2/5 v2] AVRCP: Fix not parsing player name properly Luiz Augusto von Dentz
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Luiz Augusto von Dentz @ 2013-03-07 15:11 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

Folder depth is bit 10 of the parameters not the PDU operands
---
v2: Make use of MIN macro to check player name length and fix zero length
check for folder.

 profiles/audio/avrcp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
index 85da0c0..97961da 100644
--- a/profiles/audio/avrcp.c
+++ b/profiles/audio/avrcp.c
@@ -1943,7 +1943,7 @@ static gboolean avrcp_set_browsed_player_rsp(struct avctp *conn,
 
 	items = bt_get_be32(&pdu->params[3]);
 
-	depth = operands[9];
+	depth = pdu->params[9];
 
 	folders = g_new0(char *, depth + 2);
 	folders[0] = g_strdup("/Filesystem");
-- 
1.8.1.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-03-07 15:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-07 15:11 [PATCH BlueZ 1/5 v2] AVRCP: Fix reading wrong field as folder depth Luiz Augusto von Dentz
2013-03-07 15:11 ` [PATCH BlueZ 2/5 v2] AVRCP: Fix not parsing player name properly Luiz Augusto von Dentz
2013-03-07 15:11 ` [PATCH BlueZ 3/5 v2] AVRCP: Fix not checking for invalid folder length Luiz Augusto von Dentz
2013-03-07 15:11 ` [PATCH BlueZ 4/5 v2] AVRCP: Fix not checking for invalid player name length Luiz Augusto von Dentz
2013-03-07 15:11 ` [PATCH BlueZ 5/5 v2] AVRCP: Fix not checking for invalid player items Luiz Augusto von Dentz
2013-03-07 15:21 ` [PATCH BlueZ 1/5 v2] AVRCP: Fix reading wrong field as folder depth Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).