summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-protocol.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2005-01-24 05:56:25 +0000
committerHavoc Pennington <hp@redhat.com>2005-01-24 05:56:25 +0000
commit72c433f80ba964f03688b61ff754b1c93d0fb4ad (patch)
tree0247b62780feaa20358679b9fce9a0e2c8b74a44 /dbus/dbus-protocol.h
parent9d21554dd3b560952cd5aa607c4ec07898c0b260 (diff)
2005-01-24 Havoc Pennington <hp@redhat.com>
* dbus/dbus-message-factory.c: more testing of message validation * dbus/dbus-protocol.h (DBUS_MINIMUM_HEADER_SIZE): move to this header
Diffstat (limited to 'dbus/dbus-protocol.h')
-rw-r--r--dbus/dbus-protocol.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/dbus/dbus-protocol.h b/dbus/dbus-protocol.h
index 385c5ebc..9f569ec9 100644
--- a/dbus/dbus-protocol.h
+++ b/dbus/dbus-protocol.h
@@ -184,6 +184,14 @@ extern "C" {
DBUS_STRUCT_END_CHAR_AS_STRING
+/**
+ * The smallest header size that can occur. (It won't be valid due to
+ * missing required header fields.) This is 4 bytes, two uint32, an
+ * array length. This isn't any kind of resource limit, just the
+ * necessary/logical outcome of the header signature.
+ */
+#define DBUS_MINIMUM_HEADER_SIZE 16
+
/* Services */
#define DBUS_SERVICE_ORG_FREEDESKTOP_DBUS "org.freedesktop.DBus"