Re: [PATCH BlueZ] Fix possible crash while removing a device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> ---
>  src/glib-helper.c |    8 ++++++--
>  1 files changed, 6 insertions(+), 2 deletions(-)

Applied. Thanks.

Johan
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux