Update to 2.74.1
This commit is contained in:
parent
4c51d8913b
commit
6a76c6e043
33
2921.patch
33
2921.patch
@ -1,33 +0,0 @@
|
|||||||
From ea3f17d598d550345e94e4571130e429443e91cb Mon Sep 17 00:00:00 2001
|
|
||||||
From: Emmanuele Bassi <ebassi@gnome.org>
|
|
||||||
Date: Sun, 25 Sep 2022 14:20:24 +0100
|
|
||||||
Subject: [PATCH] Empty values are not valid GParamSpec
|
|
||||||
|
|
||||||
The validate() vfunc for GParamSpecParam returns FALSE for empty GValue,
|
|
||||||
which means the is_valid() vfunc should do the same.
|
|
||||||
|
|
||||||
This avoids a segfault when calling g_param_value_is_valid() on a
|
|
||||||
GParamSpecParam.
|
|
||||||
|
|
||||||
Fixes: #2770
|
|
||||||
---
|
|
||||||
gobject/gparamspecs.c | 3 +++
|
|
||||||
1 file changed, 3 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/gobject/gparamspecs.c b/gobject/gparamspecs.c
|
|
||||||
index f17b3488b9..17b8606572 100644
|
|
||||||
--- a/gobject/gparamspecs.c
|
|
||||||
+++ b/gobject/gparamspecs.c
|
|
||||||
@@ -894,6 +894,9 @@ param_param_is_valid (GParamSpec *pspec,
|
|
||||||
{
|
|
||||||
GParamSpec *param = value->data[0].v_pointer;
|
|
||||||
|
|
||||||
+ if (param == NULL)
|
|
||||||
+ return FALSE;
|
|
||||||
+
|
|
||||||
return g_value_type_compatible (G_PARAM_SPEC_TYPE (param), G_PARAM_SPEC_VALUE_TYPE (pspec));
|
|
||||||
}
|
|
||||||
|
|
||||||
--
|
|
||||||
GitLab
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
Name: glib2
|
Name: glib2
|
||||||
Version: 2.74.0
|
Version: 2.74.1
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
Summary: A library of handy utility functions
|
Summary: A library of handy utility functions
|
||||||
|
|
||||||
@ -12,10 +12,6 @@ Source0: https://download.gnome.org/sources/glib/2.72/glib-%{version}.tar.xz
|
|||||||
# https://gitlab.gnome.org/GNOME/glib/-/merge_requests/903
|
# https://gitlab.gnome.org/GNOME/glib/-/merge_requests/903
|
||||||
Patch0: gnutls-hmac.patch
|
Patch0: gnutls-hmac.patch
|
||||||
|
|
||||||
# Backported from upstream
|
|
||||||
# https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2921
|
|
||||||
Patch1: 2921.patch
|
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (glib-2.74.0.tar.xz) = 5cdadd2f4568c0c3d45083b4d39699abf651e42e020f7bc880cce3ff33d28943118388d17a0632777e843f48009c1f97d5634fde3cb8c69c7c7f35b278ac8225
|
SHA512 (glib-2.74.1.tar.xz) = 21176cb95fcab49a781d02789bf21191a96a34a6391f066699b3c20b414b3169c958bd86623deb34ca55912083862885f7a7d12b67cc041467da2ba94d9e83c3
|
||||||
|
Loading…
Reference in New Issue
Block a user