mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-05 06:46:28 -04:00
Merge branch 'fix-remote-endpoint-update-props' into 'master'
bluez5: Fix stack smashing crash in remote_endpoint_update_props() See merge request pipewire/pipewire!2676
This commit is contained in:
commit
1307416265
1 changed files with 4 additions and 2 deletions
|
|
@ -3102,11 +3102,13 @@ static int remote_endpoint_update_props(struct spa_bt_remote_endpoint *remote_en
|
||||||
|
|
||||||
spa_log_debug(monitor->log, "remote_endpoint %p: %s=%"PRIu64, remote_endpoint, key, remote_endpoint->hisyncid);
|
spa_log_debug(monitor->log, "remote_endpoint %p: %s=%"PRIu64, remote_endpoint, key, remote_endpoint->hisyncid);
|
||||||
} else if (spa_streq(key, "SupportedFeatures")) {
|
} else if (spa_streq(key, "SupportedFeatures")) {
|
||||||
|
DBusMessageIter iter;
|
||||||
|
|
||||||
if (!check_iter_signature(&it[1], "a{sv}"))
|
if (!check_iter_signature(&it[1], "a{sv}"))
|
||||||
goto next;
|
goto next;
|
||||||
|
|
||||||
dbus_message_iter_recurse(&it[1], &it[2]);
|
dbus_message_iter_recurse(&it[1], &iter);
|
||||||
parse_supported_features(monitor, &it[2], &remote_endpoint->bap_features);
|
parse_supported_features(monitor, &iter, &remote_endpoint->bap_features);
|
||||||
} else {
|
} else {
|
||||||
unhandled:
|
unhandled:
|
||||||
spa_log_debug(monitor->log, "remote_endpoint %p: unhandled key %s", remote_endpoint, key);
|
spa_log_debug(monitor->log, "remote_endpoint %p: unhandled key %s", remote_endpoint, key);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue