Skip to content

Fix #254, logic error in frame/sample size #267

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

Merged
merged 1 commit into from
Apr 29, 2019

Conversation

ishitatsuyuki
Copy link
Collaborator

The issue originated from an logic error. Let's avoid casting like a blind by the way.

Vec are now zero-filled from the start. There's no point in leaving heap uninitialized (ref).

And hey, please do not wrap the entire function in unsafe. It's a disaster to audit.

gg.

@mitchmindtree
Copy link
Member

Thanks! I just tested this locally and all seems fine 👍

appveyor seems to be failing due to network errors, but seeing as this only touches ALSA code I think it's fine to ignore it and merge as travis is passing.

@mitchmindtree mitchmindtree merged commit 0354548 into RustAudio:master Apr 29, 2019
@ishitatsuyuki ishitatsuyuki deleted the 254-segfault branch April 29, 2019 15:39
@mitchmindtree mitchmindtree mentioned this pull request Jun 6, 2019
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