summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-internal.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-03-22 02:32:34 +0100
committerLennart Poettering <lennart@poettering.net>2013-03-22 02:32:34 +0100
commited205a6bc53735392b46fde6820520a1d18d6ebd (patch)
tree54e8220eb016089cf1c79e7290bb41f6991f05c7 /src/libsystemd-bus/bus-internal.h
parent2bf938c1913b2ba9644cc113de8dc30dd10abbd4 (diff)
bus: when parsing enforce maximum container depth
Diffstat (limited to 'src/libsystemd-bus/bus-internal.h')
-rw-r--r--src/libsystemd-bus/bus-internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd-bus/bus-internal.h b/src/libsystemd-bus/bus-internal.h
index 3c2478e8fd..d0b7b5658d 100644
--- a/src/libsystemd-bus/bus-internal.h
+++ b/src/libsystemd-bus/bus-internal.h
@@ -118,6 +118,8 @@ static inline void bus_unrefp(sd_bus **b) {
#define BUS_MESSAGE_SIZE_MAX (64*1024*1024)
#define BUS_AUTH_SIZE_MAX (64*1024)
+#define BUS_CONTAINER_DEPTH 128
+
/* Defined by the specification as maximum size of an array in
* bytes */
#define BUS_ARRAY_MAX_SIZE 67108864