]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-bus: add assert_cc for message allocation size
authorLuca Boccassi <luca.boccassi@gmail.com>
Sat, 28 Mar 2026 21:41:02 +0000 (21:41 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 30 Mar 2026 08:37:32 +0000 (09:37 +0100)
commit4f5b28b72c7ff78c7eabcce7ad4f0eaebfd5545d
tree40fdc40658bf9429f47ae6a7e03f88f9b9f013e8
parentaa2cc18c762af5c292fdd22357dbbc2c90c66db5
sd-bus: add assert_cc for message allocation size

Use CONST_ALIGN_TO to express the compile-time overflow check for
the ALIGN(sizeof(sd_bus_message)) + sizeof(BusMessageHeader)
allocation, since ALIGN() is not constexpr.

CID#1548031

Follow-up for de1c301ed165eb4d04a0c9d4babe97912b5233bb
src/libsystemd/sd-bus/bus-message.c