From: Johan Hedberg <johan.hedberg@gmail.com>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH BlueZ] Fix possible crash while removing a device
Date: Tue, 27 Sep 2011 12:31:03 +0300 [thread overview]
Message-ID: <20110927093102.GB3952@dell> (raw)
In-Reply-To: <1316781399-10977-1-git-send-email-luiz.dentz@gmail.com>
Hi Luiz,
On Fri, Sep 23, 2011, Luiz Augusto von Dentz wrote:
> If adapter has more than one sdp session active find_by_bdaddr always
> return the first one regardless if the device address match or not
> which leads to the following crash:
>
> Invalid read of size 4
> at 0x16CB31: search_cb (in /usr/sbin/bluetoothd)
> by 0x15C0CA: connect_watch (in /usr/sbin/bluetoothd)
> by 0x48CFD37: g_io_unix_dispatch (in /usr/lib/libglib-2.0.so.0.2800.6)
> by 0x488B4A0: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.2800.6)
> by 0x488BCD0: g_main_context_iterate.clone.5 (in /usr/lib/libglib-2.0.so.0.2800.6)
> by 0x488C3B8: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.2800.6)
> by 0x152D09: main (in /usr/sbin/bluetoothd)
> Address 0x4c8c600 is 16 bytes inside a block of size 48 free'd
> at 0x48234A9: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
> by 0x48920F0: g_free (in /usr/lib/libglib-2.0.so.0.2800.6)
> by 0x16BDD3: browse_request_free (in /usr/sbin/bluetoothd)
> by 0x16C7A2: browse_request_cancel (in /usr/sbin/bluetoothd)
>
> Reported by Alberto José Rodríguez Rodríguez <ajrodriguez@blulabs.es>
> ---
> src/glib-helper.c | 8 ++++++--
> 1 files changed, 6 insertions(+), 2 deletions(-)
Applied. Thanks.
Johan
prev parent reply other threads:[~2011-09-27 9:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-23 12:36 [PATCH BlueZ] Fix possible crash while removing a device Luiz Augusto von Dentz
2011-09-27 9:31 ` Johan Hedberg [this message]
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=20110927093102.GB3952@dell \
--to=johan.hedberg@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
/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