client: Fix possible stack corruption
authorŁukasz Rymanowski <lukasz.rymanowski@codecoup.pl>
Thu, 7 May 2020 21:45:37 +0000 (23:45 +0200)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:49 +0000 (14:30 +0530)
commit36094dcb04759e0e24fa0cfa0fa2a8c9ea6a463f
tree909c76dfbe3a6d1925d254ec1bde313663bb46f8
parent39ae7b0b8b5b6372ca76897b9ecc196e8cbc5e4f
client: Fix possible stack corruption

DBUS_TYPE_BOOLEAN is 'int', which does not have to be the same size as
'bool'.
On architecture where bool is smaller than in, getting prepare-authorize
will corrupt the stack

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
client/gatt.c