You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const ALL_FILE_TYPES: &[FileType] = &[FileType::Aac, FileType::Aiff, FileType::Ape, FileType::Flac, FileType::Mpeg, FileType::Mp4, FileType::Mpc, FileType::Opus, FileType::Vorbis, FileType::Speex, FileType::Wav, FileType::WavPack];
fn check_file(path: &str) {
let content = match fs::read(&path) {
Ok(content) => content,
Err(e) => {
println!("{e} - {path}");
return;
}
};
for i in ALL_FILE_TYPES {
let s = std::io::Cursor::new(&content);
let tagged_file = match Probe::with_file_type(s, *i).read() {
Ok(t) => t,
Err(_e) => {
continue;
}
};
tagged_file.properties();
tagged_file.tags();
tagged_file.primary_tag();
}
}
Summary
thread 'main' panicked at /home/runner/.cargo/git/checkouts/lofty-rs-f5e48f8219b271cf/1505ddf/lofty/src/musepack/read.rs:50:3:
attempt to subtract with overflow
stack backtrace:
0: rust_begin_unwind
at /rustc/fd8d6fbe505ecf913f5e2ca590c69a7da2789879/library/std/src/panicking.rs:662:5
1: core::panicking::panic_fmt
at /rustc/fd8d6fbe505ecf913f5e2ca590c69a7da2789879/library/core/src/panicking.rs:74:14
2: core::panicking::panic_const::panic_const_sub_overflow
at /rustc/fd8d6fbe505ecf913f5e2ca590c69a7da2789879/library/core/src/panicking.rs:181:21
3: lofty::musepack::read::read_from
at /home/runner/.cargo/git/checkouts/lofty-rs-f5e48f8219b271cf/1505ddf/lofty/src/musepack/read.rs:50:3
4: <lofty::musepack::MpcFile as lofty::file::audio_file::AudioFile>::read_from
at /home/runner/.cargo/git/checkouts/lofty-rs-f5e48f8219b271cf/1505ddf/lofty/src/musepack/mod.rs:57:10
5: lofty::probe::Probe<R>::read
at /home/runner/.cargo/git/checkouts/lofty-rs-f5e48f8219b271cf/1505ddf/lofty/src/probe.rs:477:22
6: lofty::check_file
at ./src/crates/lofty/src/main.rs:42:33
7: lofty::main
at ./src/crates/lofty/src/main.rs:26:9
8: core::ops::function::FnOnce::call_once
at /rustc/fd8d6fbe505ecf913f5e2ca590c69a7da2789879/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
##### Automatic Fuzzer note, output status "None", output signal "Some(6)"
Reproducer
Backtrace is a little different than in - #439
Summary
Expected behavior
No response
Assets
output.aac.zip
The text was updated successfully, but these errors were encountered: