Thread (2 messages) 2 messages, 2 authors, 2014-01-24

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

flat view

From: Johan Hedberg <hidden>
Date: 2014-01-24 21:57:04

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help