From c1f0e189030ceb2bafea0bc30d6b72a0fa381ddc Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Fri, 10 Oct 2003 03:56:30 +0000 Subject: 2003-10-09 Havoc Pennington * configure.in: define DBUS_HAVE_GCC33_GCOV if we have gcc 3.3. Not that we do anything about it yet. * bus/signals.c (bus_match_rule_parse): impose max length on the match rule text * dbus/dbus-protocol.h: add DBUS_MAXIMUM_MATCH_RULE_LENGTH --- dbus/dbus-protocol.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dbus') diff --git a/dbus/dbus-protocol.h b/dbus/dbus-protocol.h index a0cf54ef..549ef0e5 100644 --- a/dbus/dbus-protocol.h +++ b/dbus/dbus-protocol.h @@ -60,6 +60,9 @@ extern "C" { /* Max length in bytes of a service or interface or member name */ #define DBUS_MAXIMUM_NAME_LENGTH 256 +/* Max length of a match rule string */ +#define DBUS_MAXIMUM_MATCH_RULE_LENGTH 1024 + /* Types of message */ #define DBUS_MESSAGE_TYPE_INVALID 0 #define DBUS_MESSAGE_TYPE_METHOD_CALL 1 -- cgit