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
@@ -3,6 +3,8 @@
#include "basic-forward.h"
#define ENVIRONMENT_ASSIGNMENTS_MAX 16384U
size_t sc_arg_max(void);
bool env_name_is_valid(const char *e);