Re: [PATCH BlueZ] attrib: Fix crash if g_attrib_new() fails

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

 



Hi Lizardo,

On Fri, Jan 24, 2014, Anderson Lizardo wrote:
> If g_attrib_new() fails for some reason (e.g. bt_io_get() fails), it
> will return NULL.
> 
> Crash reported by Valgrind:
> 
> ==2845== Invalid read of size 4
> ==2845==    at 0x40C6CC4: g_io_channel_unix_get_fd (giounix.c:655)
> ==2845==  Address 0x3c is not stack'd, malloc'd or (recently) free'd
> ---
>  src/attrib-server.c |    3 +++
>  1 file changed, 3 insertions(+)

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