Branch: refs/heads/973966 Home: https://github.com/bluez/bluez Commit: bdd62c3a94162ae5341c1729e40559571529ecb2 https://github.com/bluez/bluez/commit/bdd62c3a94162ae5341c1729e40559571529ecb2 Author: Pauli Virtanen <pav@xxxxxx> Date: 2025-06-19 (Thu, 19 Jun 2025) Changed paths: M src/shared/bap.c Log Message: ----------- src/shared: allow passing in stream's own metadata to enable() If metadata is same, it should not be freed as it may be stream's own. Fixes: ERROR: AddressSanitizer: heap-use-after-free READ of size 8 at 0x7b86a76f5d18 thread T0 #0 0x000000836745 in util_iov_dup src/shared/util.c:353 #1 0x0000008ea96b in bap_stream_metadata src/shared/bap.c:1991 #2 0x0000008ebfbe in bap_ucast_enable src/shared/bap.c:2072 #3 0x0000009226e7 in bt_bap_stream_enable src/shared/bap.c:6392 #4 0x00000044037d in transport_bap_resume profiles/audio/transport.c:1981 freed by thread T0 here: #0 0x7f66a92e5bcb in free.part.0 (/lib64/libasan.so.8+0xe5bcb) #1 0x000000837002 in util_iov_free src/shared/util.c:392 #2 0x0000008ea94e in bap_stream_metadata src/shared/bap.c:1990 #3 0x0000008ebfbe in bap_ucast_enable src/shared/bap.c:2072 To unsubscribe from these emails, change your notification settings at https://github.com/bluez/bluez/settings/notifications