diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-03-22 00:42:53 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-03-22 00:42:53 +0100 |
commit | ac89bf1d53268d39025a2a00c2effdb3fa447ead (patch) | |
tree | 8a1ed549ab3b4938d3d2c296cd66b5c57fd4fc03 /src/libsystemd-bus/bus-internal.h | |
parent | b8beb2781682738f3a59aab993bf2869447a77c9 (diff) |
bus: properly validate object path values
Diffstat (limited to 'src/libsystemd-bus/bus-internal.h')
-rw-r--r-- | src/libsystemd-bus/bus-internal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libsystemd-bus/bus-internal.h b/src/libsystemd-bus/bus-internal.h index 636e998c30..809ad823fc 100644 --- a/src/libsystemd-bus/bus-internal.h +++ b/src/libsystemd-bus/bus-internal.h @@ -117,3 +117,9 @@ static inline void bus_unrefp(sd_bus **b) { #define BUS_MESSAGE_SIZE_MAX (64*1024*1024) #define BUS_AUTH_SIZE_MAX (64*1024) + +/* Defined by the specification as maximum size of an array in + * bytes */ +#define BUS_ARRAY_MAX_SIZE 67108864 + +bool object_path_is_valid(const char *p); |