Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH] Fix check for PDU size
@ 2011-10-26 13:02 Lucas De Marchi
  2011-10-26 13:02 ` [PATCH] AVRCP: implement TRACK-REACHED-END event Lucas De Marchi
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Lucas De Marchi @ 2011-10-26 13:02 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Lucas De Marchi

Company ID became part of the avrcp header so its size is already
accounted in the AVRCP_HEADER_LENGTH define.
---
 audio/avrcp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/audio/avrcp.c b/audio/avrcp.c
index f06afbf..879e959 100644
--- a/audio/avrcp.c
+++ b/audio/avrcp.c
@@ -1053,7 +1053,7 @@ static size_t handle_vendordep_pdu(struct avctp *session, uint8_t transaction,
 	pdu->packet_type = 0;
 	pdu->rsvd = 0;
 
-	if (operand_count + 3 < AVRCP_HEADER_LENGTH) {
+	if (operand_count < AVRCP_HEADER_LENGTH) {
 		pdu->params[0] = E_INVALID_COMMAND;
 		goto err_metadata;
 	}
-- 
1.7.7.1


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

end of thread, other threads:[~2011-11-04 13:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-26 13:02 [PATCH] Fix check for PDU size Lucas De Marchi
2011-10-26 13:02 ` [PATCH] AVRCP: implement TRACK-REACHED-END event Lucas De Marchi
2011-10-26 13:38   ` Luiz Augusto von Dentz
2011-10-26 23:20     ` Lucas De Marchi
2011-10-28  7:46       ` Luiz Augusto von Dentz
2011-11-03 16:28         ` Lucas De Marchi
2011-11-04 13:39           ` Johan Hedberg
2011-10-28  7:34 ` [PATCH] Fix check for PDU size Luiz Augusto von Dentz
2011-10-28 11:01 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox