varlink: limit the maximum nesting depth
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 2 Nov 2023 17:55:50 +0000 (18:55 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 2 Nov 2023 20:43:38 +0000 (20:43 +0000)
commit69d17e23db6d0d11758ee6a2f410c5fc837879a7
treede7f363b8e6617aa59335e3d2250b8c03fcb7c3b
parentd2e99d288e31c24e6eca20f6e42bacaf22da38d3
varlink: limit the maximum nesting depth

Let's limit the maximum nesting depth for structure definitions to 64 to
avoid stack overflows with very deep definitions.

Resolves: #29589
src/shared/varlink-idl.c
src/test/test-varlink-idl.c