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

Trying to read properties of flac, cause crash thread 'main' panicked at 'attempt to divide by zero #46

Closed
qarmin opened this issue May 4, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@qarmin
Copy link

qarmin commented May 4, 2022

Trying to read properties via lofty::probe::read_from_path, cause this crash

thread 'main' panicked at 'attempt to divide by zero', /home/rafal/.cargo/git/checkouts/lofty-rs-f5e48f8219b271cf/2266473/src/flac/properties.rs:46:18

Some(((file_length * 8) / length) as u32),

short.flac.zip

@qarmin qarmin added the bug Something isn't working label May 4, 2022
@Serial-ATA
Copy link
Owner

Thanks! Fixed in 77eec77

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants