Commit cc4c2d72 authored by Ralf Habacker's avatar Ralf Habacker

dbus_message_demarshal: Fix calling _dbus_string_append_len without checking...

dbus_message_demarshal: Fix calling _dbus_string_append_len without checking return value (CID 54690).

Reported by Coverity: CID 54690: Unchecked return value (CHECKED_RETURN)

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=90021Reviewed-by: default avatarSimon McVittie <simon.mcvittie@collabora.co.uk>
parent d9d130d5
......@@ -4796,7 +4796,10 @@ dbus_message_demarshal (const char *str,
return NULL;
_dbus_message_loader_get_buffer (loader, &buffer);
_dbus_string_append_len (buffer, str, len);
if (!_dbus_string_append_len (buffer, str, len))
goto fail_oom;
_dbus_message_loader_return_buffer (loader, buffer);
if (!_dbus_message_loader_queue_messages (loader))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment