File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed
Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ fn content_infer_read(c: &mut Criterion) {
3636 ( FLAC , "../tests/files/assets/minimal/full_test.flac" ) ,
3737 ( MP4 , "../tests/files/assets/minimal/m4a_codec_aac.m4a" ) ,
3838 ( MP3 , "../tests/files/assets/minimal/full_test.mp3" ) ,
39+ ( MPC , "../tests/files/assets/minimal/mpc_sv8.mpc" ) ,
3940 ( OPUS , "../tests/files/assets/minimal/full_test.opus" ) ,
4041 ( RIFF , "../tests/files/assets/minimal/wav_format_pcm.wav" ) ,
4142 ( SPEEX , "../tests/files/assets/minimal/full_test.spx" ) ,
Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ members = ["."]
2222name = " filetype_from_buffer"
2323path = " fuzz_targets/filetype_from_buffer.rs"
2424
25+ [[bin ]]
26+ name = " mpcfile_read_from"
27+ path = " fuzz_targets/mpcfile_read_from.rs"
28+
2529[[bin ]]
2630name = " mpegfile_read_from"
2731path = " fuzz_targets/mpegfile_read_from.rs"
Original file line number Diff line number Diff line change 1+ #![ no_main]
2+
3+ use std:: io:: Cursor ;
4+
5+ use libfuzzer_sys:: fuzz_target;
6+ use lofty:: { AudioFile , ParseOptions } ;
7+
8+ fuzz_target ! ( |data: Vec <u8 >| {
9+ let _ = lofty:: musepack:: MpcFile :: read_from( & mut Cursor :: new( data) , ParseOptions :: new( ) ) ;
10+ } ) ;
You can’t perform that action at this time.
0 commit comments