From 72c433f80ba964f03688b61ff754b1c93d0fb4ad Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Mon, 24 Jan 2005 05:56:25 +0000 Subject: 2005-01-24 Havoc Pennington * dbus/dbus-message-factory.c: more testing of message validation * dbus/dbus-protocol.h (DBUS_MINIMUM_HEADER_SIZE): move to this header --- dbus/dbus-protocol.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'dbus/dbus-protocol.h') 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" -- cgit