diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-08-21 13:05:18 +0200 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-09-26 18:58:56 +0000 |
commit | 63173d5bef1302959d05cb932e94dcb4e53a4282 (patch) | |
tree | 6cf439d0c8beed59aa39d511856f01e6b13456df /AUTHORS | |
parent | c6d7d58c13e88f40002afc2f8161269325a2ae6b (diff) | |
download | webrtc-63173d5bef1302959d05cb932e94dcb4e53a4282.tar.gz |
pipewire: handle deleting the capturer while a D-Bus call is in progress
If a D-Bus call is in progress when a BaseCapturerPipeWire is deleted, then
the user_data is invalid when the callback function is called. This results
in memory corruption.
To fix this, use a GCancellable. If it is canceled, the callback will be
called with a corresponding error. Detect this error and abort before
accessing the user_data.
Note: The first argument is the 'source_object'. For g_dbus_proxy_call()
this is the proxy object not the connection. This was not a problem before,
because it was not used.
Bug: None
Change-Id: I8d5e3fb5c49fcc9afd61cdb8e8249f78b9434faf
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/149817
Reviewed-by: Jamie Walch <jamiewalch@chromium.org>
Commit-Queue: Jamie Walch <jamiewalch@chromium.org>
Cr-Commit-Position: refs/heads/master@{#29326}
Diffstat (limited to 'AUTHORS')
-rw-r--r-- | AUTHORS | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -95,6 +95,7 @@ Mozilla Foundation <*@mozilla.com> NVIDIA Corporation <*@nvidia.com> Opera Software ASA <*@opera.com> Optical Tone Ltd <*@opticaltone.com> +Pengutronix e.K. <*@pengutronix.de> Sinch AB <*@sinch.com> struktur AG <*@struktur.de> Telenor Digital AS <*@telenor.com> |