]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-bus: switch to a manual overflow check in sd_bus_track_add_name()
authorLennart Poettering <lennart@poettering.net>
Wed, 20 Apr 2022 20:30:22 +0000 (22:30 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 20 Apr 2022 23:58:35 +0000 (08:58 +0900)
commit7f40cb7c86b0fff3a82096a9499570bad9c19fd2
treeb090a12138a02167e7e02f96457194b72d213c19
parent7d3e856e824ce54f8e768df3ffde2b25c8c21d1d
sd-bus: switch to a manual overflow check in sd_bus_track_add_name()

This is generally used in a directly client controllable way, hence we
should handle ref count overflow gracefully, instead of hitting an
assert().

As discussed:

https://github.com/systemd/systemd/pull/23099#discussion_r854341850
src/libsystemd/sd-bus/bus-track.c