dbus-manager: limit the number of states/patterns per query (#41891)

Let's cap the number of states/patterns per query to something
reasonable, i.e. max 256 states and 4K patterns per query.

---

Also, use the env assignments limit in a couple more places.
This commit is contained in:
Lennart Poettering
2026-05-04 10:07:04 +02:00
committed by GitHub
5 changed files with 41 additions and 3 deletions
-2
View File
@@ -9,8 +9,6 @@
#include "sd-forward.h"
#include "string-util.h" /* IWYU pragma: keep */
#define ENVIRONMENT_ASSIGNMENTS_MAX 1024U
#define JSON_VARIANT_REPLACE(v, q) \
do { \
typeof(v)* _v = &(v); \