summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-message.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2003-02-14 04:54:55 +0000
committerHavoc Pennington <hp@redhat.com>2003-02-14 04:54:55 +0000
commit07a795f1db3b09beeec647643a4f263f617bc371 (patch)
tree4f557fce8ee2012dc7fcd40587d8d40b20d112e3 /dbus/dbus-message.c
parentb544e59358251f0811c9fe35c149a67d5deafdba (diff)
2003-02-14 Havoc Pennington <hp@pobox.com>
* dbus/dbus-mempool.c: fail if the debug functions so indicate * dbus/dbus-memory.c: fail if the debug functions indicate we should * dbus/dbus-internals.c (_dbus_set_fail_alloc_counter) (_dbus_decrement_fail_alloc_counter): debug functions to simulate memory allocation failures
Diffstat (limited to 'dbus/dbus-message.c')
-rw-r--r--dbus/dbus-message.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/dbus/dbus-message.c b/dbus/dbus-message.c
index 4287bd95..4ea2a631 100644
--- a/dbus/dbus-message.c
+++ b/dbus/dbus-message.c
@@ -2006,6 +2006,12 @@ decode_header_data (const DBusString *data,
* in. This function must always be called, even if no bytes were
* successfully read.
*
+ * @todo if we run out of memory in here, we offer no way for calling
+ * code to handle it, i.e. they can't re-run the message parsing
+ * attempt. Perhaps much of this code could be moved to pop_message()?
+ * But then that may need to distinguish NULL return for no messages
+ * from NULL return for errors.
+ *
* @param loader the loader.
* @param buffer the buffer.
* @param bytes_read number of bytes that were read into the buffer.