public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Daniel Williams <dcbw@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/glib2] cve-2026-58016-f44: - Revert upstream changes to g_static_mutex_get_mutex_impl_shortcut that
Date: Tue, 11 Aug 2026 10:33:44 GMT	[thread overview]
Message-ID: <178644442438.1.1841986746651078476.rpms-glib2-c3de1709e8f3@fedoraproject.org> (raw)

        A new commit has been pushed.

        Repo   : rpms/glib2
        Branch : cve-2026-58016-f44
        Commit : c3de1709e8f33a4fd3105a6e7cfc12e017968520
        Author : Daniel Williams <dcbw@fedoraproject.org>
        Date   : 2008-04-14T00:34:23+00:00
        Stats  : +28/-1 in 2 file(s)
        URL    : https://src.fedoraproject.org/rpms/glib2/c/c3de1709e8f33a4fd3105a6e7cfc12e017968520?branch=cve-2026-58016-f44

        Log:
        - Revert upstream changes to g_static_mutex_get_mutex_impl_shortcut that
broke users of GMutex and GStaticMutex (bgo#316221)

---
diff --git a/glib2.spec b/glib2.spec
index f805f40..f54b693 100644
--- a/glib2.spec
+++ b/glib2.spec
@@ -3,7 +3,7 @@
 Summary: A library of handy utility functions
 Name: glib2
 Version: 2.16.3
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: LGPLv2+
 Group: System Environment/Libraries
 URL: http://www.gtk.org
@@ -22,6 +22,10 @@ BuildRequires: glibc-devel
 # fix a possible crasher, http://bugzilla.gnome.org/show_bug.cgi?id=527132
 Patch0: appinfo.patch
 
+# revert a broken fix for http://bugzilla.gnome.org/show_bug.cgi?id=316221
+# committed on March 12, 2008
+Patch1: revert-316221.patch
+
 %description 
 GLib is the low-level core library that forms the basis
 for projects such as GTK+ and GNOME. It provides data structure
@@ -54,6 +58,7 @@ of version 2 of the GLib library.
 %prep
 %setup -q -n glib-%{version}
 %patch0 -p1 -b .appinfo
+%patch1 -R -p1 -b .revert-316221
 
 %build
 %configure --disable-gtk-doc --enable-static 
@@ -126,6 +131,10 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/lib*.a
 
 %changelog
+* Sun Apr 13 2008 Dan Williams <dcbw@redhat.com> - 2.16.3-3
+- Revert upstream changes to g_static_mutex_get_mutex_impl_shortcut that broke
+    users of GMutex and GStaticMutex (bgo#316221)
+
 * Wed Apr  9 2008 Matthias Clasen <mclasen@redhat.com> - 2.16.3-2
 - Fix a possible crash in application launching (bgo#527132)
 

diff --git a/revert-316221.patch b/revert-316221.patch
new file mode 100644
index 0000000..3355266
--- /dev/null
+++ b/revert-316221.patch
@@ -0,0 +1,18 @@
+--- trunk/glib/gthread.h	2007/10/21 17:01:29	5792
++++ trunk/glib/gthread.h	2008/03/12 15:36:38	6691
+@@ -140,9 +140,15 @@
+ /* internal function for fallback static mutex implementation */
+ GMutex* g_static_mutex_get_mutex_impl   (GMutex **mutex);
+ 
++#ifdef __cplusplus
+ #define g_static_mutex_get_mutex_impl_shortcut(mutex) \
+   (g_atomic_pointer_get ((gpointer*)(void*)mutex) ? *(mutex) : \
+    g_static_mutex_get_mutex_impl (mutex))
++#else
++#define g_static_mutex_get_mutex_impl_shortcut(mutex) \
++  (g_atomic_pointer_get (mutex) ? *(mutex) : \
++   g_static_mutex_get_mutex_impl (mutex))
++#endif
+ 
+ /* shorthands for conditional and unconditional function calls */
+ 

                 reply	other threads:[~2026-08-11 10:33 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=178644442438.1.1841986746651078476.rpms-glib2-c3de1709e8f3@fedoraproject.org \
    --to=dcbw@fedoraproject.org \
    --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