Skip to content

Commit

Permalink
Add regression test from fuzzing test cases.
Browse files Browse the repository at this point in the history
This is the test case from frewsxcv's fuzzing work,
generated by American Fuzzy Lop's rust support.

#4
  • Loading branch information
rillian committed Oct 28, 2015
1 parent 471c80a commit abb0f2b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/afl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@ fn fuzz_2() {
let mut context = mp4parse::MediaContext::new();
let _ = mp4parse::read_box(&mut c, &mut context);
}

/// https://github.com/mozilla/mp4parse-rust/issues/4
#[test]
fn fuzz_4() {
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);
}

0 comments on commit abb0f2b

Please sign in to comment.