From 3c9c01e3ce1f2f28ed828238072e835e6bf12ddb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 13 Nov 2017 11:43:09 +0100 Subject: [PATCH] =?UTF-8?q?GResource=20=E2=80=93=20Add=20note=20to=20docum?= =?UTF-8?q?entation=20that=20the=20memory=20must=20be=20at=20least=20point?= =?UTF-8?q?er=20aligned?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://bugzilla.gnome.org/show_bug.cgi?id=790030 --- gio/gresource.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gio/gresource.c b/gio/gresource.c index 0d11d6884..ed0e474a4 100644 --- a/gio/gresource.c +++ b/gio/gresource.c @@ -524,6 +524,9 @@ g_resource_new_from_table (GvdbTable *table) * If you want to use this resource in the global resource namespace you need * to register it with g_resources_register(). * + * Note: @data must be backed by memory that is at least pointer aligned. + * Otherwise this function will fail and exit the process. + * * Returns: (transfer full): a new #GResource, or %NULL on error * * Since: 2.32