Commit 37f9b613 authored by Christoph Reiter's avatar Christoph Reiter 🐍

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 !671
parents 4cf8fd0b 11309b79
Pipeline #59161 passed with stages
in 28 minutes and 57 seconds
......@@ -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' : {},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment