]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/bus-unit-util.c
tree-wide: be more careful when passing literal integers to "t" bus message fields
authorLennart Poettering <lennart@poettering.net>
Wed, 21 Feb 2024 10:03:35 +0000 (11:03 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 21 Feb 2024 19:31:50 +0000 (04:31 +0900)
commit04a3af3c6d434bcde7118440f13d55c910eb9ba0
treedc8ec91935ead9b15debdbc6325b38e6e8a6eef6
parentff80bd2d6daf6c83592ba084e6241eb92e53ec7f
tree-wide: be more careful when passing literal integers to "t" bus message fields

Since we use varargs for sd_message_append() we need to make sure the
parameters we pass are actually 64bit wide, if "t" is used. Hence cast
appropriately if necessary.

I went through the whole tree, and in most cases we got it right, but
there are some cases we missed so far.

Inspired by: #31420
src/core/dbus-execute.c
src/core/dbus-service.c
src/core/dbus-unit.c
src/machine/machinectl.c
src/portable/portablectl.c
src/shared/bus-unit-util.c