From 07a795f1db3b09beeec647643a4f263f617bc371 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Fri, 14 Feb 2003 04:54:55 +0000 Subject: 2003-02-14 Havoc Pennington * 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 --- dbus/dbus-message.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dbus/dbus-message.c') 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. -- cgit