summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-message.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2005-02-06 04:21:57 +0000
committerHavoc Pennington <hp@redhat.com>2005-02-06 04:21:57 +0000
commit8f04e1e01f51fa9bef564dbaf29be59694407d21 (patch)
tree316da5fb825566b282c375bf54b05744807f3c2e /dbus/dbus-message.c
parent0e53d4eed36f378e99802e516fbb0d1355641902 (diff)
2005-02-05 Havoc Pennington <hp@redhat.com>
* dbus/dbus-message-factory.c (generate_special): more test cases, increasing coverage * dbus/dbus-marshal-validate.c (validate_body_helper): return the reason why a signature was invalid * dbus/dbus-marshal-header.c (load_and_validate_field): fix to skip the length of the string before we look at it in validation * dbus/dbus-string-util.c (_dbus_string_test): add tests for equal_substring * dbus/dbus-message.c (_dbus_message_loader_new): default max_message_length to DBUS_MAXIMUM_MESSAGE_LENGTH
Diffstat (limited to 'dbus/dbus-message.c')
-rw-r--r--dbus/dbus-message.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/dbus/dbus-message.c b/dbus/dbus-message.c
index 46a30b6f..a2852558 100644
--- a/dbus/dbus-message.c
+++ b/dbus/dbus-message.c
@@ -2957,11 +2957,9 @@ _dbus_message_loader_new (void)
loader->corrupted = FALSE;
loader->corruption_reason = DBUS_VALID;
-
- /* Try to cap message size at something that won't *totally* hose
- * the system if we have a couple of them.
- */
- loader->max_message_size = _DBUS_ONE_MEGABYTE * 32;
+
+ /* this can be configured by the app, but defaults to the protocol max */
+ loader->max_message_size = DBUS_MAXIMUM_MESSAGE_LENGTH;
if (!_dbus_string_init (&loader->data))
{