public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/glib2] cve-2026-58016-f44: - Revert upstream changes to g_static_mutex_get_mutex_impl_shortcut that
@ 2026-08-11 10:33 Daniel Williams
  0 siblings, 0 replies; only message in thread
From: Daniel Williams @ 2026-08-11 10:33 UTC (permalink / raw)
  To: git-commits

        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 */
+ 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-11 10:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-11 10:33 [rpms/glib2] cve-2026-58016-f44: - Revert upstream changes to g_static_mutex_get_mutex_impl_shortcut that Daniel Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox