Skip to content

AudioStream: Work around uninitialized read in cubeb#14717

Merged
lightningterror merged 1 commit into
PCSX2:masterfrom
chaoticgd:cubeb_workaround
Jul 18, 2026
Merged

AudioStream: Work around uninitialized read in cubeb#14717
lightningterror merged 1 commit into
PCSX2:masterfrom
chaoticgd:cubeb_workaround

Conversation

@chaoticgd

@chaoticgd chaoticgd commented Jul 16, 2026

Copy link
Copy Markdown
Member

Description of Changes

Initialize the collection out parameter of cubeb_enumerate_devices before calling it.

Rationale behind Changes

A number of months back I started getting crashes in cubeb_enumerate_devices after a system update that broke sound output. I opened an upstream PR to fix the bug, but it's not been merged, so lets work around it instead.

Suggested Testing Steps

N/A

Did you use AI to help find, test, or implement this issue or feature?

No.

@SternXD SternXD left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no issues on macOS or Windows (haven't tested Linux)

@lightningterror
lightningterror merged commit baca417 into PCSX2:master Jul 18, 2026
16 checks passed
@chaoticgd
chaoticgd deleted the cubeb_workaround branch July 18, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants