+Overview of changes in GLib 2.62.2
+==================================
+
+* Bugs fixed:
+ - #1896 Use after free when calling g_dbus_connection_flush_sync() in a dedicated thread
+ - !1154 Backport !1152 “gwinhttpvfs: Handle g_get_prgname() returning NULL” to glib-2-62
+ - !1156 Backport !1146 Solaris fixes to glib-2-62
+
+
Overview of changes in GLib 2.62.1
==================================
GMutex mutex;
GCond cond;
guint64 number_to_wait_for;
+ gboolean finished;
GError *error;
} FlushData;
f->error = error != NULL ? g_error_copy (error) : NULL;
g_mutex_lock (&f->mutex);
+ f->finished = TRUE;
g_cond_signal (&f->cond);
g_mutex_unlock (&f->mutex);
}
g_mutex_init (&data->mutex);
g_cond_init (&data->cond);
data->number_to_wait_for = worker->write_num_messages_written + pending_writes;
+ data->finished = FALSE;
g_mutex_lock (&data->mutex);
schedule_writing_unlocked (worker, NULL, data, NULL);
if (data != NULL)
{
/* Wait for flush operations to finish. */
- g_mutex_lock (&worker->write_lock);
- while (worker->write_num_messages_flushed < data->number_to_wait_for)
+ while (!data->finished)
{
- g_mutex_unlock (&worker->write_lock);
g_cond_wait (&data->cond, &data->mutex);
- g_mutex_lock (&worker->write_lock);
}
- g_mutex_unlock (&worker->write_lock);
g_mutex_unlock (&data->mutex);
g_cond_clear (&data->cond);
#endif
#elif defined (HAVE_SYS_MNTTAB_H)
#include <sys/mnttab.h>
+#if defined(__sun) && !defined(mnt_opts)
+#define mnt_opts mnt_mntopts
+#endif
#endif
#ifdef HAVE_SYS_VFSTAB_H
g_winhttp_vfs_init (GWinHttpVfs *vfs)
{
wchar_t *wagent;
+ const gchar *prgname = g_get_prgname ();
vfs->wrapped_vfs = g_vfs_get_local ();
- wagent = g_utf8_to_utf16 (g_get_prgname (), -1, NULL, NULL, NULL);
-
- if (!wagent)
+ if (prgname)
+ wagent = g_utf8_to_utf16 (prgname, -1, NULL, NULL, NULL);
+ else
wagent = g_utf8_to_utf16 ("GWinHttpVfs", -1, NULL, NULL, NULL);
vfs->session = (G_WINHTTP_VFS_GET_CLASS (vfs)->funcs->pWinHttpOpen)
project('glib', 'c', 'cpp',
- version : '2.62.1',
+ version : '2.62.2',
# NOTE: We keep this pinned at 0.49 because that's what Debian 10 ships
meson_version : '>= 0.49.2',
default_options : [
export_dynamic_ldflags = ['-Wl,--export-all-symbols']
elif host_system == 'darwin'
export_dynamic_ldflags = []
+elif host_system == 'sunos'
+ export_dynamic_ldflags = []
else
export_dynamic_ldflags = ['-Wl,--export-dynamic']
endif