Skip to content

Opening wav file cause panic #174

@qarmin

Description

@qarmin

Reproducer

Just opening file and reading properties with read_from_file, read_from, properties functions

Summary

thread 'main' panicked at 'attempt to divide by zero', /home/rafal/.cargo/registry/src/github.com-1ecc6299db9ec823/lofty-0.12.0/src/iff/wav/properties.rs:186:31 stack backtrace: 0: rust_begin_unwind at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/std/src/panicking.rs:575:5 1: core::panicking::panic_fmt at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/core/src/panicking.rs:64:14 2: core::panicking::panic at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library/core/src/panicking.rs:114:5 3: lofty::iff::wav::properties::read_properties 4: lofty::iff::wav::read::read_from 5: lofty::probe::read_from 6: lofty::main 

Expected behavior

No crash

Assets

Broken.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions