Skip to content

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

Open
defiantnerd wants to merge 1 commit into
thestk:masterfrom
defiantnerd:fix/coreaudio-closestream-null-handle
Open

defiantnerd wants to merge 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.

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.

1 participant