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:
@@ -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); \
|
||||
|
||||
Reference in New Issue
Block a user