Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Fix fuzz_reader_parse_test
Browse files Browse the repository at this point in the history
Fix compilation issues with fuzz_reader_parse_test.
  • Loading branch information
dlrobertson authored and bnjbvr committed Nov 15, 2018
1 parent 606eee5 commit af045c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fuzz/fuzz_reader_parse_test.rs
Expand Up @@ -4,6 +4,8 @@ extern crate libfuzzer_sys;
extern crate cranelift_reader;
use std::str;

fuzz_target!(|data: &[u8]| if let Ok(s) = str::from_utf8(data) {
let _ = cranelift_reader::parse_test(s);
fuzz_target!(|data: &[u8]| {
if let Ok(s) = str::from_utf8(data) {
let _ = cranelift_reader::parse_test(s, None, None);
}
});

0 comments on commit af045c1

Please sign in to comment.