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

Panic when using read_box #6

Closed
frewsxcv opened this issue Oct 29, 2015 · 2 comments
Closed

Panic when using read_box #6

frewsxcv opened this issue Oct 29, 2015 · 2 comments

Comments

@frewsxcv
Copy link
Contributor

extern crate mp4parse;

use std::io::Cursor;

fn main() {
    let mut c = Cursor::new(b"\x00\x00\x00\x13\x66\x74\x79\x70\x30\x30\x30\x30\x30\x30\x30\x30".to_vec());
    let mut context = mp4parse::MediaContext::new();
    let _ = mp4parse::read_box(&mut c, &mut context);
}

panic discovered using afl.rs

kinetiknz added a commit to kinetiknz/mp4parse-rust that referenced this issue Nov 4, 2015
Addresses the assert discovered via afl.rs and reported in
mozilla#6
@kinetiknz
Copy link
Collaborator

Pushed a fix here: kinetiknz@55d38ac

@rillian
Copy link
Contributor

rillian commented Nov 4, 2015

Merged in 55d38ac. Thanks!

@rillian rillian closed this as completed Nov 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants