From 50b544e2c0c974d7e0f11f19f871036dc81f7506 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 18 Sep 2018 14:48:43 +0100 Subject: [PATCH] gdbusmessage: Clarify error returns for g_dbus_message_new_from_blob() Signed-off-by: Philip Withnall --- gio/gdbusmessage.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gio/gdbusmessage.c b/gio/gdbusmessage.c index 22fcb2025..97888ec57 100644 --- a/gio/gdbusmessage.c +++ b/gio/gdbusmessage.c @@ -2006,6 +2006,9 @@ g_dbus_message_bytes_needed (guchar *blob, * order that the message was in can be retrieved using * g_dbus_message_get_byte_order(). * + * If the @blob cannot be parsed, contains invalid fields, or contains invalid + * headers, %G_IO_ERROR_INVALID_ARGUMENT will be returned. + * * Returns: A new #GDBusMessage or %NULL if @error is set. Free with * g_object_unref(). *