public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: "Claudio Takahasi" <claudio.takahasi@openbossa.org>
To: "BlueZ development" <bluez-devel@lists.sourceforge.net>
Subject: [Bluez-devel] [PATCH]Service Search Request bug
Date: Fri, 9 May 2008 16:52:45 -0300	[thread overview]
Message-ID: <f9d4bd30805091252j4fdb59ddrfed908cf6af4ef46@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 409 bytes --]

Hi Marcel,

Please review the attached patch.

I found this error when I was using OBEX Data Server. There is a
"short" description here:
http://pastebin.com/m7b65cb6e

The same bug was reported in the ubuntu launchpad:
https://bugs.launchpad.net/ubuntu/+source/obex-data-server/+bug/211252

Regards,
Claudio.
-- 
--
Claudio Takahasi
Instituto Nokia de Tecnologia
Recife - Pernambuco - Brasil
+55 81 30879999

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: sdpd01.patch --]
[-- Type: text/x-diff; name=sdpd01.patch, Size: 715 bytes --]

Index: sdpd/request.c
===================================================================
RCS file: /cvsroot/bluez/utils/sdpd/request.c,v
retrieving revision 1.22
diff -u -r1.22 request.c
--- sdpd/request.c	5 Mar 2008 18:10:39 -0000	1.22
+++ sdpd/request.c	9 May 2008 19:36:58 -0000
@@ -238,13 +238,12 @@
 {
 	int status = 0, i, plen, mlen, mtu, scanned;
 	sdp_list_t *pattern = NULL;
-	uint16_t expected, actual;
+	uint16_t expected, actual, rsp_count = 0;
 	uint8_t dtd;
 	sdp_cont_state_t *cstate = NULL;
 	uint8_t *pCacheBuffer = NULL;
 	int handleSize = 0;
 	uint32_t cStateId = 0;
-	short rsp_count = 0;
 	short *pTotalRecordCount, *pCurrentRecordCount;
 	uint8_t *pdata = req->buf + sizeof(sdp_pdu_hdr_t);
 

[-- Attachment #3: Type: text/plain, Size: 320 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

[-- Attachment #4: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

             reply	other threads:[~2008-05-09 19:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-09 19:52 Claudio Takahasi [this message]
2008-05-10  1:11 ` [Bluez-devel] [PATCH]Service Search Request bug Marcel Holtmann

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=f9d4bd30805091252j4fdb59ddrfed908cf6af4ef46@mail.gmail.com \
    --to=claudio.takahasi@openbossa.org \
    --cc=bluez-devel@lists.sourceforge.net \
    /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