-
Notifications
You must be signed in to change notification settings - Fork 21
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
validate_buffers is unsound in certain situations #69
Comments
The same happens in all the resamplers, not only Has this caused any problems in practice? If not, it may not be worth doing anything about it now. I'm anyway planning to get rid of as_ref and as_mut in the (hopefully) not too distant future. The plan is to replace the current input and output buffers with something that allows abstracting the data layout, so that for example both interleaved and sequential buffers can be used. |
In
asynchro_fast.rs
,validate_buffers
checks the lengths ofwave_in
andwave_out
and is subtly unsound.as_ref
andas_mut
do not necessarily return pointers to the same structure every time, so the length of the objects can change between successive calls toas_mut
The text was updated successfully, but these errors were encountered: