From 5764d8bfdb29527cd320cf1f946808dd26527d45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20=27Khorne=27=20Lowas-Rzechonek?= Date: Wed, 3 Jul 2019 21:08:33 +0200 Subject: [PATCH] mesh: Fix stack overflow in get_element_properties D-Bus type 'q' denotes uint16, not uint8. --- mesh/node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh/node.c b/mesh/node.c index 67e0dd014..ad94d885c 100644 --- a/mesh/node.c +++ b/mesh/node.c @@ -1183,7 +1183,7 @@ static bool get_element_properties(struct mesh_node *node, const char *path, while (l_dbus_message_iter_next_entry(properties, &key, &var)) { if (!strcmp(key, "Location")) { - uint8_t loc; + uint16_t loc; l_dbus_message_iter_get_variant(&var, "q", &loc); -- 2.47.3