Skip to content

CoreAudio: guard the handle in closeStream() - #488

Merged
garyscavone merged 1 commit into
thestk:masterfrom
defiantnerd:fix/coreaudio-closestream-null-handle
Nov 30, 2026
Merged

garyscavone merged 1 commit into
thestk:masterfrom
defiantnerd:fix/coreaudio-closestream-null-handle

Conversation

@defiantnerd

Copy link
Copy Markdown
Contributor

RtApiCore::closeStream() guards every use of handle except the condition-variable teardown.
When stream_.apiHandle has already been cleared, &handle->condition dereferences null at offset 0x38 and crashes.
Those three lines are now wrapped in if ( handle ), matching the rest of the function.

@garyscavone
garyscavone merged commit 60900ff into thestk:master Nov 30, 2026
12 checks passed
@defiantnerd
defiantnerd deleted the fix/coreaudio-closestream-null-handle branch November 30, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants