From: Johan Hedberg <johan.hedberg@gmail.com>
To: Angela Bartholomaus <angelab@codeaurora.org>
Cc: linux-bluetooth@vger.kernel.org, rshaffer@codeaurora.org,
marcel@holtmann.org
Subject: Re: [PATCH 1/4] Bluetooth: Send an Invalid PDU Size Error Response for Service Search Req
Date: Mon, 17 Jan 2011 14:50:27 +0530 [thread overview]
Message-ID: <20110117092027.GA28815@jh-x301> (raw)
In-Reply-To: <1282755705-28400-2-git-send-email-angelab@codeaurora.org>
Hi Angela,
On Wed, Aug 25, 2010, Angela Bartholomaus wrote:
> Send error code 0x04 per CoreSpecv2.1, sec 4.4 for TP/SERVER/SS/BI-01-C
> ---
> src/sdpd-request.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/sdpd-request.c b/src/sdpd-request.c
> index d56ffc2..cc9fe82 100644
> --- a/src/sdpd-request.c
> +++ b/src/sdpd-request.c
> @@ -367,7 +367,7 @@ static int service_search_req(sdp_req_t *req, sdp_buf_t *buf)
> mlen = scanned + sizeof(uint16_t) + 1;
> // ensure we don't read past buffer
> if (plen < mlen || plen != mlen + *(uint8_t *)(pdata+sizeof(uint16_t))) {
> - status = SDP_INVALID_SYNTAX;
> + status = SDP_INVALID_PDU_SIZE;
> goto done;
> }
I'm not sure exactly what test system you tested this with, but it
breaks TP/SERVER/SS/BI-02-C with the BITE tester with test vector
1.0.40.0. Also, this code path doesn't seem to be traversed at all for
TP/SERVER/SS/BI-01-C which the patch claims to fix. In order to get a
clean test report again from the BITE I went ahead and reverted[1] this
patch. Now both SS/BI-01-C and SS/BI-02-C are passing with the BITE.
Your other SDP patches don't seem to have any issues.
Johan
[1] http://git.kernel.org/?p=bluetooth/bluez.git;a=commitdiff;h=24dbc52388f1ef2e759d24d74cd32f93531c8857
next prev parent reply other threads:[~2011-01-17 9:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-25 17:01 [PATCH v2 0/4] Fix error reporting for SDP Requests Angela Bartholomaus
2010-08-25 17:01 ` [PATCH 1/4] Bluetooth: Send an Invalid PDU Size Error Response for Service Search Req Angela Bartholomaus
2011-01-17 9:20 ` Johan Hedberg [this message]
2010-08-25 17:01 ` [PATCH 2/4] Bluetooth: Send an Invalid PDU Size Error Response for Service Attr Req Angela Bartholomaus
2010-08-25 17:01 ` [PATCH 3/4] Bluetooth: Send an Invalid PDU Size Error Resp for Service Attr Search Req Angela Bartholomaus
2010-08-25 17:01 ` [PATCH 4/4] Bluetooth: Send Invalid Syntax Error if Resp Size Less Than 0x07 Angela Bartholomaus
2010-08-25 17:11 ` [PATCH v2 0/4] Fix error reporting for SDP Requests Johan Hedberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110117092027.GA28815@jh-x301 \
--to=johan.hedberg@gmail.com \
--cc=angelab@codeaurora.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=marcel@holtmann.org \
--cc=rshaffer@codeaurora.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox