mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-04 10:16:17 +01:00
Merge branch 'gdbus-fix-use-after-free' into 'master'
gdbus: Fix a potential use-after-free on connection close. Fixes #1686 Closes #1686 See merge request GNOME/glib!671
This commit is contained in:
commit
37f9b613d9
@ -809,11 +809,11 @@ _g_dbus_worker_do_read_cb (GInputStream *input_stream,
|
||||
out:
|
||||
g_mutex_unlock (&worker->read_lock);
|
||||
|
||||
/* gives up the reference acquired when calling g_input_stream_read_async() */
|
||||
_g_dbus_worker_unref (worker);
|
||||
|
||||
/* check if there is any pending close */
|
||||
schedule_pending_close (worker);
|
||||
|
||||
/* gives up the reference acquired when calling g_input_stream_read_async() */
|
||||
_g_dbus_worker_unref (worker);
|
||||
}
|
||||
|
||||
/* called in private thread shared by all GDBusConnection instances (with read-lock held) */
|
||||
|
@ -124,8 +124,7 @@ if host_machine.system() != 'windows'
|
||||
'file' : {},
|
||||
'gdbus-peer' : {
|
||||
'dependencies' : [libgdbus_example_objectmanager_dep],
|
||||
'install_rpath' : installed_tests_execdir,
|
||||
'suite': ['flaky'],
|
||||
'install_rpath' : installed_tests_execdir
|
||||
},
|
||||
'gdbus-peer-object-manager' : {},
|
||||
'live-g-file' : {},
|
||||
|
Loading…
Reference in New Issue
Block a user