mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-03 12:28:03 +02:00
dbus_message_demarshal_bytes_needed: correct a wrong assertion
It's entirely possible for a message to indicate how many bytes we need, without actually being complete. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38120 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
This commit is contained in:
parent
c3223ba6c4
commit
90ac05171d
1 changed files with 1 additions and 1 deletions
|
|
@ -4680,7 +4680,7 @@ dbus_message_demarshal_bytes_needed(const char *buf,
|
|||
|
||||
if (validity == DBUS_VALID)
|
||||
{
|
||||
_dbus_assert(have_message);
|
||||
_dbus_assert (have_message || (header_len + body_len) > len);
|
||||
return header_len + body_len;
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue