gdbusmessage: Remove arbitrary restriction on minimum D-Bus blob length

The code in `g_dbus_message_new_from_blob()` has now been fixed to
correctly error out on all truncated messages, so there’s no need for an
arbitrary programmer error if the input is too short to contain a valid
D-Bus message header.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>

Helps: #2528
This commit is contained in:
Philip Withnall
2021-11-23 12:57:29 +00:00
parent c58be7d569
commit 1f8390c002
2 changed files with 2 additions and 5 deletions

View File

@@ -2168,7 +2168,6 @@ g_dbus_message_new_from_blob (guchar *blob,
g_return_val_if_fail (blob != NULL, NULL);
g_return_val_if_fail (error == NULL || *error == NULL, NULL);
g_return_val_if_fail (blob_len >= 12, NULL);
message = g_dbus_message_new ();