Panic when using read_box
extern crate mp4parse; use std::io::Cursor; fn main() { let mut c = Cursor::new(b"\x00\x00\x00\x01\x30\x30\x30\x30\x00\x00\x00\x00\x00\x00\x00\x00".to_vec()); let mut context = mp4parse::MediaContext::new(); let _ = mp4parse::read_box(&mut c, &mut context); }
coreyf@frewbook-pro /t/mp4 (master)> cargo run
Running `target/debug/mp4`
thread '<main>' panicked at 'assertion failed: size64 >= 16', /private/tmp/mp4parse-rust/src/lib.rs:273
Process didn't exit successfully: `target/debug/mp4` (exit code: 101)
panic discovered using afl.rs