From: John (J5) Palmieri Date: Tue, 15 Jan 2008 20:30:19 +0000 (-0500) Subject: make sure to call va_end if we hit an OOM error inside va_start (FDO Bug #12846) X-Git-Tag: dbus-1.1.3~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=97872bf72ff327855e2e86a4760348cd2ca03b9e;p=platform%2Fupstream%2Fdbus.git make sure to call va_end if we hit an OOM error inside va_start (FDO Bug #12846) 2008-01-15 John (J5) Palmieri * patch by Kimmo Hämäläinen * dbus/dbus-errors.c (dbus_set_error): make sure to call va_end if we hit an OOM error inside va_start (FDO Bug #12846) --- diff --git a/ChangeLog b/ChangeLog index c3d79d1..84faa73 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,13 @@ * patch by Kimmo Hämäläinen + * dbus/dbus-errors.c (dbus_set_error): make sure to call va_end if we + hit an OOM error inside va_start (FDO Bug #12846) + +2008-01-15 John (J5) Palmieri + + * patch by Kimmo Hämäläinen + * dbus/dbus-connection.c (dbus_connection_send_with_reply): fix possible crash if pending_return is NULL (FDO Bug #12673) diff --git a/dbus/dbus-errors.c b/dbus/dbus-errors.c index 9629c68..6d14ff7 100644 --- a/dbus/dbus-errors.c +++ b/dbus/dbus-errors.c @@ -384,6 +384,7 @@ dbus_set_error (DBusError *error, if (!_dbus_string_append_printf_valist (&str, format, args)) { _dbus_string_free (&str); + va_end (args); goto nomem; } va_end (args);