1
0
forked from drath/libratbag

ratbagd: change type of a variable to fix stack smashing

sd-bus requires an int variable to be passed to SD_BUS_TYPE_BOOLEAN
calls, see man sd_bus_message_read (3).

We have had an issue of the same sort recently in
77fcaf6d28 which was in some freshly new
code, but this time it's something we have been shipping for a while.
This commit is contained in:
Yaroslav Chvanov
2023-03-08 19:34:28 +03:00
parent 072c1845b2
commit 1ffbae54a7

View File

@@ -330,7 +330,7 @@ ratbagd_profile_set_disabled(sd_bus *bus,
{
struct ratbagd_profile *profile = userdata;
int r;
bool disabled;
int disabled;
CHECK_CALL(sd_bus_message_read(m, "b", &disabled));