mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
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:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user