mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-24 10:57:53 +02:00
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:
@@ -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 ();
|
||||
|
||||
|
Reference in New Issue
Block a user