Projects
openEuler:24.03:SP1:Everything:64G
glib2
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 2
View file
_service:tar_scm:glib2.spec
Changed
@@ -1,6 +1,6 @@ Name: glib2 Version: 2.78.3 -Release: 2 +Release: 5 Summary: The core library that forms the basis for projects such as GTK+ and GNOME License: LGPLv2+ URL: https://www.gtk.org @@ -9,10 +9,15 @@ Patch1: gspawn-eperm.patch Patch2: backport-gmessages-fix-dropping-irrelevant-log-domains.patch Patch3: backport-gutils-Fix-an-unlikely-minor-leak-in-g_build_user_data_dir.patch - +Patch4: gio-fix-filesystem-type-ext-err.patch Patch6001: backport-CVE-2024-34397.patch Patch6002: backport-gdbusconnection-Allow-name-owners-to-have-the-syntax-of-a-well-known-name.patch +Patch6003: backport-gdbusmessage-Clean-the-cached-arg0-when-setting-the-message-body.patch +Patch6004: backport-gsocketclient-Fix-a-use-after-free-in-g_socket_client_connected_callback.patch +Patch6005: backport-gcontextspecificgroup-Wait-until-stop_func-is-done.patch +Patch6006: backport-gresources-fix-memory-leak-from-libelf.patch +Patch6007: Correct-translation-information.patch BuildRequires: chrpath gcc gcc-c++ gettext perl-interpreter BUildRequires: glibc-devel libattr-devel libselinux-devel meson @@ -197,6 +202,19 @@ %endif %changelog +* Fri Oct 25 2024 GuoCe <guoce@kylinos.cn> - 2.78.3-5 +- Correct translation information + +* Thu Oct 24 2024 litenglong <litenglong@kylinos.cn> - 2.78.3-4 +- fix filesystem type ext err + +* Mon Sep 9 2024 zhangzikang <zhangzikang@kylinos.cn> - 2.78.3-3 +- backport patch: + backport-gdbusmessage-Clean-the-cached-arg0-when-setting-the-message-body.patch + backport-gsocketclient-Fix-a-use-after-free-in-g_socket_client_connected_callback.patch + backport-gcontextspecificgroup-Wait-until-stop_func-is-done.patch + backport-gresources-fix-memory-leak-from-libelf.patch + * Tue Jun 18 2024 hanhuihui <hanhuihui5@huawei.com> - 2.78.3-2 - fix CVE-2024-34397
View file
_service:tar_scm:Correct-translation-information.patch
Added
@@ -0,0 +1,35 @@ +From 69c3532fc9d677793a0e15f04651de7e1ef215ed Mon Sep 17 00:00:00 2001 +From: Guo Ce <guoce@kylinos.cn> +Date: Thu, 24 Oct 2024 15:48:15 +0800 +Subject: PATCH Correct translation information + +--- + .../desktop-files/usr/applications/org.gnome.clocks.desktop | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/gio/tests/desktop-files/usr/applications/org.gnome.clocks.desktop b/gio/tests/desktop-files/usr/applications/org.gnome.clocks.desktop +index 92a6b35..f1ca091 100644 +--- a/gio/tests/desktop-files/usr/applications/org.gnome.clocks.desktop ++++ b/gio/tests/desktop-files/usr/applications/org.gnome.clocks.desktop +@@ -204,7 +204,7 @@ X-GNOME-FullNameth=นาฬิกา GNOME + X-GNOME-FullNametr=GNOME Saatleri + X-GNOME-FullNamevi=Đồng hồ GNOME + X-GNOME-FullNamezh_CN=GNOME 时钟 +-X-GNOME-FullNamezh_HK=GNOME Clocks ++X-GNOME-FullNamezh_HK=GNOME 時鐘 + X-GNOME-FullNamezh_TW=GNOME 時鐘 + X-GNOME-FullNameug=گىنوم سائەتلىرى + X-GNOME-FullName=GNOME Clocks +@@ -398,7 +398,8 @@ X-Geoclue-Reasonsv=Låter världsklockor visas för din tidszon. + X-Geoclue-Reasonth=เพื่อให้สามารถแสดงนาฬิกาทั่วโลกสำหรับเขตเวลาของคุณ + X-Geoclue-Reasontr=Saat diliminiz için dünya saatlerinin gösterilmesine olanak tanır. + X-Geoclue-Reasonvi=Cho phép các đồng hồ thế giới hiển thị cho múi giờ của bạn. +-X-Geoclue-Reasonzh_CN=允许为您的时区显示世界时钟 ++X-Geoclue-Reasonzh_CN=允许为您的时区显示世界时钟。 ++X-Geoclue-Reasonzh_HK=允許為您的時區顯示世界時鐘。 + X-Geoclue-Reasonzh_TW=允許為您的時區顯示世界時鐘。 + X-Geoclue-Reason=Allows world clocks to be displayed for your time zone. + X-Flatpak=org.gnome.clocks +-- +2.37.1 +
View file
_service:tar_scm:backport-gcontextspecificgroup-Wait-until-stop_func-is-done.patch
Added
@@ -0,0 +1,44 @@ +From bf7d941088b4860a93f3ea0f3202f495a9fd0667 Mon Sep 17 00:00:00 2001 +From: Ondrej Holy <oholy@redhat.com> +Date: Mon, 19 Feb 2024 13:38:00 +0100 +Subject: PATCH gcontextspecificgroup: Wait until stop_func is done + +Currently, the `stop_func` is executed on an extra thread, and the +`g_context_specific_group_remove` function returns before the `stop_func` +finishes. It may happen that the `stop_func` is never executed if the +program terminates soon after calling it. Let's wait until the `stop_func` +is done. + +Fixes: https://gitlab.gnome.org/GNOME/glib/-/issues/3258 +--- + gio/gcontextspecificgroup.c | 14 ++------------ + 1 file changed, 2 insertions(+), 12 deletions(-) + +diff --git a/gio/gcontextspecificgroup.c b/gio/gcontextspecificgroup.c +index e1def3bbb..41a35de86 100644 +--- a/gio/gcontextspecificgroup.c ++++ b/gio/gcontextspecificgroup.c +@@ -153,18 +153,8 @@ g_context_specific_group_request_state (GContextSpecificGroup *group, + } + } + +- /* we only block for positive transitions */ +- if (requested_state) +- { +- while (group->requested_state != group->effective_state) +- g_cond_wait (&group->cond, &group->lock); +- +- /* there is no way this could go back to FALSE because the object +- * that we just created in this thread would have to have been +- * destroyed again (from this thread) before that could happen. +- */ +- g_assert (group->effective_state); +- } ++ while (group->requested_state != group->effective_state) ++ g_cond_wait (&group->cond, &group->lock); + } + + gpointer +-- +2.27.0 +
View file
_service:tar_scm:backport-gdbusmessage-Clean-the-cached-arg0-when-setting-the-message-body.patch
Added
@@ -0,0 +1,43 @@ +From 8966099e9bef3fd3481f87bb7ad933f5cacad885 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= <mail@3v1n0.net> +Date: Wed, 8 May 2024 22:53:51 +0200 +Subject: PATCH gdbusmessage: Clean the cached arg0 when setting the message + body + +We're now caching arg0 but such value is not cleared when a new body is +set as it's in the connection filter test cases where we've a leak as +highlighted by both valgrind and leak sanitizer +--- + gio/gdbusmessage.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/gio/gdbusmessage.c b/gio/gdbusmessage.c +index 0b77dc607..331e68d45 100644 +--- a/gio/gdbusmessage.c ++++ b/gio/gdbusmessage.c +@@ -1167,10 +1167,12 @@ g_dbus_message_set_body (GDBusMessage *message, + + if (message->body != NULL) + g_variant_unref (message->body); ++ ++ g_clear_pointer (&message->arg0_cache, g_variant_unref); ++ + if (body == NULL) + { + message->body = NULL; +- message->arg0_cache = NULL; + g_dbus_message_set_signature (message, NULL); + } + else +@@ -1184,8 +1186,6 @@ g_dbus_message_set_body (GDBusMessage *message, + if (g_variant_is_of_type (message->body, G_VARIANT_TYPE_TUPLE) && + g_variant_n_children (message->body) > 0) + message->arg0_cache = g_variant_get_child_value (message->body, 0); +- else +- message->arg0_cache = NULL; + + type_string = g_variant_get_type_string (body); + type_string_len = strlen (type_string); +-- +2.27.0 +
View file
_service:tar_scm:backport-gresources-fix-memory-leak-from-libelf.patch
Added
@@ -0,0 +1,29 @@ +From aa8ed92fba93f6213eab8f50754f427550797bfc Mon Sep 17 00:00:00 2001 +From: Maxim Moskalets <Maxim.Moskalets@kaspersky.com> +Date: Sat, 3 Feb 2024 15:16:56 +0300 +Subject: PATCH gresources: fix memory leak from libelf + +Memory was leaking when allocating it inside libelf and losing the pointer to it (it was an automatic variable) when returning NULL from the get_elf function in some cases + +Closes #3242 + +Signed-off-by: Maxim Moskalets <Maxim.Moskalets@kaspersky.com> +--- + gio/gresource-tool.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/gio/gresource-tool.c b/gio/gresource-tool.c +index fa7bdedb5..44b1f3f02 100644 +--- a/gio/gresource-tool.c ++++ b/gio/gresource-tool.c +@@ -165,6 +165,7 @@ get_elf (const gchar *file, + + if (elf_kind (elf) != ELF_K_ELF) + { ++ elf_end (elf); + g_close (*fd, NULL); + *fd = -1; + return NULL; +-- +2.27.0 +
View file
_service:tar_scm:backport-gsocketclient-Fix-a-use-after-free-in-g_socket_client_connected_callback.patch
Added
@@ -0,0 +1,36 @@ +From 9a661ab970d194afc59f9b7cdf603fe4bd66505d Mon Sep 17 00:00:00 2001 +From: Philip Withnall <pwithnall@gnome.org> +Date: Mon, 26 Feb 2024 15:26:03 +0000 +Subject: PATCH gsocketclient: Fix a use-after-free in + g_socket_client_connected_callback() + +The ref held by `data->task` may be the last one on the `GTask`. The +`GTask` stores `attempt->data` as its task data, and so when the `GTask` +is finalised, `attempt->data` is too. `connection_attempt_remove()` +needs to access `attempt->data`, so must be called before the +`g_object_unref()` in this situation. + +Signed-off-by: Philip Withnall <pwithnall@gnome.org> + +Fixes: #3266 +--- + gio/gsocketclient.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gio/gsocketclient.c b/gio/gsocketclient.c +index 1127e4599..d4231599a 100644 +--- a/gio/gsocketclient.c ++++ b/gio/gsocketclient.c +@@ -1879,8 +1879,8 @@ g_socket_client_connected_callback (GObject *source, + + if (task_completed_or_cancelled (data) || g_cancellable_is_cancelled (attempt->cancellable)) + { +- g_object_unref (data->task); + connection_attempt_unref (attempt); ++ g_object_unref (data->task); + return; + } + +-- +2.27.0 +
View file
_service:tar_scm:gio-fix-filesystem-type-ext-err.patch
Added
@@ -0,0 +1,25 @@ +From 901711c799f67a62739edf07312aa12aecd6e334 Mon Sep 17 00:00:00 2001 +From: litenglong <litenglong@kylinos.cn> +Date: Wed, 23 Oct 2024 15:44:27 +0800 +Subject: PATCH gio fix filesystem type ext err + +--- + gio/glocalfile.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gio/glocalfile.c b/gio/glocalfile.c +index dbb5690..9e01547 100644 +--- a/gio/glocalfile.c ++++ b/gio/glocalfile.c +@@ -637,7 +637,7 @@ get_fs_type (long f_type) + case 0xEF51: + return "ext2"; + case 0xEF53: +- return "ext3/ext4"; ++ return "ext2/ext3/ext4"; + case 0xF2F52010: + return "f2fs"; + case 0x65735546: +-- +2.25.1 +
View file
_service
Changed
@@ -2,7 +2,7 @@ <service name="tar_scm"> <param name="scm">git</param> <param name="url">git@gitee.com:src-openeuler/glib2.git</param> - <param name="revision">openEuler-24.03-LTS-Next</param> + <param name="revision">openEuler-24.03-LTS-SP1</param> <param name="exclude">*</param> <param name="extract">*</param> </service>
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2