- Add patchset to fix gvariant parsing issues. (bsc#1111499). 0001-gvariant-Fix-checking-arithmetic-for-tuple-element-e.patch 0002-gvarianttype-Impose-a-recursion-limit-of-64-on-varia.patch 0003-gvariant-Check-array-offsets-against-serialised-data.patch 0004-gvariant-Check-tuple-offsets-against-serialised-data.patch 0005-gvariant-Limit-GVariant-strings-to-G_MAXSSIZE.patch 0006-gdbusmessage-Validate-type-of-message-header-signatu.patch 0007-gdbusmessage-Improve-documentation-for-g_dbus_messag.patch 0008-gdbusmessage-Clarify-error-returns-for-g_dbus_messag.patch 0009-gdbusmessage-Fix-a-typo-in-a-documentation-comment.patch 0010-gdbusmessage-Check-for-valid-GVariantType-when-parsi.patch 0011-gvariant-Clarify-internal-documentation-about-GVaria.patch 0012-tests-Tidy-up-GError-handling-in-gdbus-serialization.patch 0013-tests-Use-g_assert_null-in-gdbus-serialization-test.patch 0014-gutf8-Add-a-g_utf8_validate_len-function.patch 0015-glib-Port-various-callers-to-use-g_utf8_validate_len.patch OBS-URL: https://build.opensuse.org/request/show/644162 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/glib2?expand=0&rev=370
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
From f6fffa31a480e63787cbb7ee440da562400b0702 Mon Sep 17 00:00:00 2001
|
|
From: Philip Withnall <withnall@endlessm.com>
|
|
Date: Thu, 16 Aug 2018 21:35:31 +0100
|
|
Subject: [PATCH 07/15] gdbusmessage: Improve documentation for
|
|
g_dbus_message_get_header()
|
|
|
|
The caller is responsible for checking the type of the returned
|
|
GVariant.
|
|
|
|
Signed-off-by: Philip Withnall <withnall@endlessm.com>
|
|
---
|
|
gio/gdbusmessage.c | 5 ++++-
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/gio/gdbusmessage.c b/gio/gdbusmessage.c
|
|
index 79bc11c16..22fcb2025 100644
|
|
--- a/gio/gdbusmessage.c
|
|
+++ b/gio/gdbusmessage.c
|
|
@@ -985,7 +985,10 @@ g_dbus_message_set_serial (GDBusMessage *message,
|
|
*
|
|
* Gets a header field on @message.
|
|
*
|
|
- * Returns: A #GVariant with the value if the header was found, %NULL
|
|
+ * The caller is responsible for checking the type of the returned #GVariant
|
|
+ * matches what is expected.
|
|
+ *
|
|
+ * Returns: (transfer none) (nullable): A #GVariant with the value if the header was found, %NULL
|
|
* otherwise. Do not free, it is owned by @message.
|
|
*
|
|
* Since: 2.26
|
|
--
|
|
2.14.4
|
|
|