Skip to content

Conversation

@marler8997
Copy link
Contributor

@marler8997 marler8997 commented Sep 15, 2025

fixes: #5

I fixed and merged an array out-of-bounds access upstream here: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/850

I've cherry-picked the same change in this PR.

P.S. I've also been using this patch in the new linux client for Tuple I've been working on the past couple months

This issue was found by enabling ubsan. For me it consistently triggered
after about 28 seconds running a simple example that plays a sine wave
via the mainloop api.

I added a log and confirmed that before the ubsan is triggered the
index variable j is indeed 32 which is out-of-bounds.

This commit was cherry-picked from upstream:

https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/1fbc6b0e0e796ea1e78825fce4ca815475d30294

Co-authored-by: Arun Raghavan <[email protected]>
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.

sine.zig example crash

1 participant