Fix: heap-use-after-free in AudioMixerByMultiTrack#1718
Fix: heap-use-after-free in AudioMixerByMultiTrack#1718shogo4405 merged 1 commit intoHaishinKit:mainfrom
Conversation
|
Hello, could you please share the code that reproduces the issue? https://github.com/HaishinKit/HaishinKit.swift/blob/main/HaishinKit/Sources/Mixer/AudioNode.swift#L41-L45 I feel that it might be better to handle it differently, like in the example below, but I'm not sure because I don't know how to reproduce the issue. class MediaMixer {
var mixerNode: AudioNode {
disSet {
oldValue?.stop()
}
}
}
extension AudioNode {
deinit {
stop()
…
}
fun stop() {
if (started) {
AudioOutputUnitStop(audioUnit)
started = false
}
}
}
|
|
ScreenBroadcastExtension-2025-06-17-113108.txt Hi! Faced with similar problem. Crash came after update Xcode to 16.4
|
|
I tested it several times but couldn't figure out how to reproduce the issue. |
Description & motivation
We were running into heap-use-after-free crashes when using multi track audio. (Manually appending audio > create track > tracks didSet > setupAudioNodes > audio unit callback referenced released node)
Details
Type of change