public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Matthias Clasen <mclasen@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/glib2] cve-2026-58016-f44: Fix a GDBus segfault
Date: Tue, 11 Aug 2026 10:35:00 GMT	[thread overview]
Message-ID: <178644450076.1.12419756645281774251.rpms-glib2-ce1e8c81d55b@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/glib2
Branch : cve-2026-58016-f44
Commit : ce1e8c81d55bf8c4a26930e3974e8060641c8ad4
Author : Matthias Clasen <mclasen@redhat.com>
Date   : 2011-11-23T09:39:14-05:00
Stats  : +62/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/glib2/c/ce1e8c81d55bf8c4a26930e3974e8060641c8ad4?branch=cve-2026-58016-f44

Log:
Fix a GDBus segfault

---
diff --git a/0001-GDBusWorker-continue_writing-initialize-flush_async_.patch b/0001-GDBusWorker-continue_writing-initialize-flush_async_.patch
new file mode 100644
index 0000000..4b9b5cd
--- /dev/null
+++ b/0001-GDBusWorker-continue_writing-initialize-flush_async_.patch
@@ -0,0 +1,55 @@
+From 968ef5f5ffbe5e694bae3052bea34e9b9d1aef35 Mon Sep 17 00:00:00 2001
+From: Simon McVittie <simon.mcvittie@collabora.co.uk>
+Date: Wed, 23 Nov 2011 11:20:15 +0000
+Subject: [PATCH 1/2] GDBusWorker: continue_writing: initialize
+ flush_async_data if closing
+
+This was a regression in commit f41178c6c: flush_async_data wasn't
+necessarily NULL in the "don't flush" case.
+
+Also move initialization of these variables up so that it's
+unconditional, since that's easier to verify than checking
+that each branch gets it right.
+
+Bug: https://bugzilla.gnome.org/show_bug.cgi?id=664617
+Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
+---
+ gio/gdbusprivate.c |    8 +++-----
+ 1 files changed, 3 insertions(+), 5 deletions(-)
+
+diff --git a/gio/gdbusprivate.c b/gio/gdbusprivate.c
+index 178214e..5b3b77d 100644
+--- a/gio/gdbusprivate.c
++++ b/gio/gdbusprivate.c
+@@ -1441,6 +1441,9 @@ continue_writing (GDBusWorker *worker)
+ 
+   g_mutex_lock (&worker->write_lock);
+ 
++  data = NULL;
++  flush_async_data = NULL;
++
+   /* if we want to close the connection, that takes precedence */
+   if (worker->pending_close_attempts != NULL)
+     {
+@@ -1450,7 +1453,6 @@ continue_writing (GDBusWorker *worker)
+       g_io_stream_close_async (worker->stream, G_PRIORITY_DEFAULT,
+                                NULL, iostream_close_cb,
+                                _g_dbus_worker_ref (worker));
+-      data = NULL;
+     }
+   else
+     {
+@@ -1463,10 +1465,6 @@ continue_writing (GDBusWorker *worker)
+           if (data != NULL)
+             worker->output_pending = PENDING_WRITE;
+         }
+-      else
+-        {
+-          data = NULL;
+-        }
+     }
+ 
+   g_mutex_unlock (&worker->write_lock);
+-- 
+1.7.7.1
+

diff --git a/glib2.spec b/glib2.spec
index 9a5ecf6..4012194 100644
--- a/glib2.spec
+++ b/glib2.spec
@@ -3,13 +3,15 @@
 Summary: A library of handy utility functions
 Name: glib2
 Version: 2.31.2
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: LGPLv2+
 Group: System Environment/Libraries
 URL: http://www.gtk.org
 #VCS: git:git://git.gnome.org/glib
 Source: http://download.gnome.org/sources/glib/2.31/glib-%{version}.tar.xz
 
+# upstream fix
+Patch0: 0001-GDBusWorker-continue_writing-initialize-flush_async_.patch
 BuildRequires: pkgconfig
 BuildRequires: gamin-devel
 BuildRequires: gettext
@@ -57,6 +59,7 @@ The glib2-static package includes static libraries of the GLib library.
 
 %prep
 %setup -q -n glib-%{version}
+%patch0 -p1
 
 %build
 # Support builds of both git snapshots and tarballs packed with autogoo
@@ -159,6 +162,9 @@ gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules
 
 
 %changelog
+* Wed Nov 23 2011 Matthias Clasen <mclasen@redhat.com> - 2.31.2-2
+- Fix a GDBus regression leading to segfaults
+
 * Mon Nov 21 2011 Matthias Clasen <mclasen@redhat.com> - 2.31.2-1
 - Update to 2.31.2
 

                 reply	other threads:[~2026-08-11 10:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178644450076.1.12419756645281774251.rpms-glib2-ce1e8c81d55b@fedoraproject.org \
    --to=mclasen@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox