From: Lennart Poettering Date: Wed, 15 Jun 2016 20:41:56 +0000 (+0200) Subject: sd-bus: make sure bus_map_all_properties() handle booleans right X-Git-Tag: v231.3~92 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=1443d4b2e7210724b40411b108b1e2d30063ca5d;hp=1443d4b2e7210724b40411b108b1e2d30063ca5d;p=elogind.git sd-bus: make sure bus_map_all_properties() handle booleans right sd-bus generally exposes bools as "int" instead of "bool" in the public API. This is relevant when unmarshaling booleans, as the relevant functions expect an int* pointer and no bool* pointer. Since sizeof(bool) is not necessarily the same as sizeof(int) this is problematic and might result in memory corruption. Let's fix this, and make sure bus_map_all_properties() handles booleans as ints, as the rest of sd-bus, and make all users of it expect the right thing. ---