Commit: bea5cc4d12b48edb58c851c7e9ad9640bb7cedee
Parent: c888c682fbd4e02dce6bf4c1f9a47328ceb02716
Author: George Kiagiadakis <george.kiagiadakis@collabora.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2025-05-27 16:33:43
Tree: 9ee9ac82fbffa6900827b6b3efc27556d6168659

audio/avrcp: fix crash when NowPlaying changes while list_items is in progress The media_item objects are owned by the player and while we keep temporary pointers to them in pending_list_items, clearing the player's playlist destroys them and we will end up crashing in the next call to avrcp_list_items_rsp(). The crash is racy and can only be observed when skipping tracks very quickly in an Apple Music station (where the playlist changes on every next song)

Diffstat

M profiles/audio/avrcp.c | 9 +++++++++

1 files changed, 9 insertions(+), 0 deletions(-)

View Full Diff | Patch