From 3b51c0c6b71fe9d3b67e022be935afa05e48035b Mon Sep 17 00:00:00 2001 From: =?utf8?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. Change-Id: Ia9c8f9bb2d6f60f46d180ae583771685593be7f5 Signed-off-by: Anupam Roy --- mesh/node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh/node.c b/mesh/node.c index 580d310..93dccf4 100644 --- a/mesh/node.c +++ b/mesh/node.c @@ -1185,7 +1185,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.7.4