Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a Jack audio segfault #6912

Merged
merged 3 commits into from
Oct 31, 2023

Conversation

JohannesLorenz
Copy link
Contributor

@JohannesLorenz JohannesLorenz commented Oct 1, 2023

I added some formatting fixes using clang-format.

The segfault happens when you use buffersize 224: Then, in

memset( b, 0, sizeof( *b ) * ( _nframes - done ) );
, done can be greater than _nframes.

@JohannesLorenz
Copy link
Contributor Author

Notice: Low probability, but might fix #5954 . Though that issue might have already been fixed in the last 2 years.

The segfault happens when you use buffersize 224: Then, in
AudioJack.cpp, L424, `done` can be greater than `_nframes`.
These were done with `clang-format`, and slight patching where
`clang-format` was a bit weird.
@JohannesLorenz JohannesLorenz merged commit 5d60035 into LMMS:master Oct 31, 2023
9 checks passed
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.

4 participants