diff options
| author | John (J5) Palmieri <johnp@redhat.com> | 2008-01-14 18:09:14 -0500 | 
|---|---|---|
| committer | John (J5) Palmieri <johnp@redhat.com> | 2008-01-14 18:09:14 -0500 | 
| commit | c8e29a910b33911a5d695976a78ae3705819745f (patch) | |
| tree | faa7e7fee1c8c6d186b58f4edc907aa12482f6b5 | |
| parent | 93e8a272d71953267043e85c29d971cec36aa5b0 (diff) | |
return message loader buffer in case of OOM (FDO Bug#12666)
2008-01-14  John (J5) Palmieri  <johnp@redhat.com>
	* patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com>
	* dbus/dbus-transport-socket.c(do_reading): return message
	loader buffer in case of OOM (FDO Bug#12666)
| -rw-r--r-- | ChangeLog | 7 | ||||
| -rw-r--r-- | dbus/dbus-transport-socket.c | 4 | 
2 files changed, 11 insertions, 0 deletions
| @@ -1,5 +1,12 @@  2008-01-14  John (J5) Palmieri  <johnp@redhat.com> +	* patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> + +	* dbus-1.0.2/dbus/dbus-transport-socket.c(do_reading): return message  +	loader buffer in case of OOM (FDO Bug#12666) + +2008-01-14  John (J5) Palmieri  <johnp@redhat.com> +  	* configure.in: add warning to output when libxml is selected since  	we don't have a libxml maintainer and expat works perfectly fine  	for what we need an xml parser for diff --git a/dbus/dbus-transport-socket.c b/dbus/dbus-transport-socket.c index 05e3f3ae..10b671c2 100644 --- a/dbus/dbus-transport-socket.c +++ b/dbus/dbus-transport-socket.c @@ -724,6 +724,10 @@ do_reading (DBusTransport *transport)                                         buffer))              {                _dbus_verbose ("Out of memory decoding incoming data\n"); +              _dbus_message_loader_return_buffer (transport->loader, +                                              buffer, +                                              _dbus_string_get_length (buffer) - orig_len); +                oom = TRUE;                goto out;              } | 
