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

auto_array: protect from various calls when length_ is 0 #770

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

Pehrsons
Copy link
Contributor

cubeb-coreaudio-rs has hit a case when running its tests on MacOS 12 where it fails the assert(destination && source); in PodCopy because it tried to push 0 samples to an auto_array of length 0, as the internal auto_array buffer had not been allocated yet.

cubeb-coreaudio-rs has hit a case when running its tests on MacOS 12
where it fails the `assert(destination && source);` in `PodCopy` because
it tried to push 0 samples to an auto_array of length 0, as the internal
auto_array buffer had not been allocated yet.
@Pehrsons Pehrsons merged commit ed2efe2 into master Dec 12, 2023
18 checks passed
@Pehrsons Pehrsons deleted the auto_array-zero-length-push-fix branch December 12, 2023 09:56
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