]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: add test for variant recursion depth limit in message_skip_fields() 42164/head
authorTristanInSec <tristan.mtn@gmail.com>
Tue, 19 May 2026 21:33:11 +0000 (17:33 -0400)
committerTristanInSec <tristan.mtn@gmail.com>
Tue, 19 May 2026 21:33:11 +0000 (17:33 -0400)
commitddb221c3b26d561286518da99d477e2f580076b0
treeb5ec18810cb55c2a19377a1d94d0a426f12d9b71
parent9b21738498affe2b7ec477be1b55e79a052d852f
test: add test for variant recursion depth limit in message_skip_fields()

Craft a raw D-Bus message with an unknown header field containing
BUS_CONTAINER_DEPTH+1 nested variants and verify that message parsing
rejects it with -EBADMSG rather than recursing until stack overflow.
src/libsystemd/sd-bus/test-bus-marshal.c