[PATCH BlueZ] hog: Fix segfault when discovering descriptors

Subsystems: the rest

STALE5105d

2 messages, 2 authors, 2012-09-20 · open the first message on its own page

[PATCH BlueZ] hog: Fix segfault when discovering descriptors

From: João Paulo Rechi Vita <hidden>
Date: 2012-09-14 13:56:50

Invalid memory was being accessed when discovering the External Report
Reference descriptor.
---
 profiles/input/hog_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/profiles/input/hog_device.c b/profiles/input/hog_device.c
index 664c52b..03af931 100644
--- a/profiles/input/hog_device.c
+++ b/profiles/input/hog_device.c
@@ -479,7 +479,7 @@ static void char_discovered_cb(GSList *chars, guint8 status, gpointer user_data)
 		} else if (bt_uuid_cmp(&uuid, &report_map_uuid) == 0) {
 			gatt_read_char(hogdev->attrib, chr->value_handle, 0,
 						report_map_read_cb, hogdev);
-			discover_descriptor(hogdev->attrib, chr, next, NULL);
+			discover_descriptor(hogdev->attrib, chr, next, hogdev);
 		} else if (bt_uuid_cmp(&uuid, &info_uuid) == 0)
 			info_handle = chr->value_handle;
 		else if (bt_uuid_cmp(&uuid, &proto_mode_uuid) == 0)
-- 
1.7.11.4

Re: [PATCH BlueZ] hog: Fix segfault when discovering descriptors

From: Johan Hedberg <hidden>
Date: 2012-09-20 11:14:54

Hi João Paulo,

On Fri, Sep 14, 2012, João Paulo Rechi Vita wrote:
Invalid memory was being accessed when discovering the External Report
Reference descriptor.
---
 profiles/input/hog_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
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