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

Uncaught size mismatch when checking m4a file #430

Closed
qarmin opened this issue Jul 15, 2024 · 0 comments · Fixed by #434
Closed

Uncaught size mismatch when checking m4a file #430

qarmin opened this issue Jul 15, 2024 · 0 comments · Fixed by #434
Labels
bug Something isn't working

Comments

@qarmin
Copy link

qarmin commented Jul 15, 2024

Reproducer

    let mut file = match File::open(&path) {
        Ok(t) => t,
        Err(e) => {
            println!("{e} - {path}");
            return;
        }
    };
    let tagged_file = match read_from(&mut file) {
        Ok(t) => t,
        Err(e) => {
            println!("{e}");
            return;
        }
    };

    tagged_file.properties();
    tagged_file.tags();
    tagged_file.primary_tag();

Summary

thread 'main' panicked at /home/runner/.cargo/git/checkouts/lofty-rs-f5e48f8219b271cf/5a3a8ba/lofty/src/mp4/ilst/read.rs:217:5:
uncaught size mismatch, reader position: 510 (expected <= 489)
stack backtrace:
   0: rust_begin_unwind
             at /rustc/fcaa6fdfbee1316184e7ad98c53241d52cd30a5f/library/std/src/panicking.rs:665:5
   1: core::panicking::panic_fmt
             at /rustc/fcaa6fdfbee1316184e7ad98c53241d52cd30a5f/library/core/src/panicking.rs:74:14
   2: lofty::mp4::ilst::read::parse_data_inner
             at /home/runner/.cargo/git/checkouts/lofty-rs-f5e48f8219b271cf/5a3a8ba/lofty/src/mp4/ilst/read.rs:217:2
   3: lofty::mp4::ilst::read::parse_data
             at /home/runner/.cargo/git/checkouts/lofty-rs-f5e48f8219b271cf/5a3a8ba/lofty/src/mp4/ilst/read.rs:166:31
   4: lofty::mp4::ilst::read::parse_ilst
             at /home/runner/.cargo/git/checkouts/lofty-rs-f5e48f8219b271cf/5a3a8ba/lofty/src/mp4/ilst/read.rs:141:3
   5: lofty::mp4::moov::ilst_from_udta
             at /home/runner/.cargo/git/checkouts/lofty-rs-f5e48f8219b271cf/5a3a8ba/lofty/src/mp4/moov.rs:145:10
   6: lofty::mp4::moov::Moov::parse
             at /home/runner/.cargo/git/checkouts/lofty-rs-f5e48f8219b271cf/5a3a8ba/lofty/src/mp4/moov.rs:57:25
   7: lofty::mp4::read::read_from
             at /home/runner/.cargo/git/checkouts/lofty-rs-f5e48f8219b271cf/5a3a8ba/lofty/src/mp4/read.rs:195:13
   8: <lofty::mp4::Mp4File as lofty::file::audio_file::AudioFile>::read_from
             at /home/runner/.cargo/git/checkouts/lofty-rs-f5e48f8219b271cf/5a3a8ba/lofty/src/mp4/mod.rs:32:10
   9: lofty::probe::Probe<R>::read
             at /home/runner/.cargo/git/checkouts/lofty-rs-f5e48f8219b271cf/5a3a8ba/lofty/src/probe.rs:476:22
  10: lofty::probe::read_from
             at /home/runner/.cargo/git/checkouts/lofty-rs-f5e48f8219b271cf/5a3a8ba/lofty/src/probe.rs:517:2
  11: lofty::check_file
             at ./src/crates/lofty/src/main.rs:37:29
  12: lofty::main
             at ./src/crates/lofty/src/main.rs:25:9
  13: core::ops::function::FnOnce::call_once
             at /rustc/fcaa6fdfbee1316184e7ad98c53241d52cd30a5f/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
timeout: the monitored command dumped core

##### Automatic Fuzzer note, output status "None", output signal "Some(6)"

Expected behavior

No response

Assets

compressed.zip

@qarmin qarmin added the bug Something isn't working label Jul 15, 2024
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

Successfully merging a pull request may close this issue.

1 participant