From b5021411a84822cb3f1e3aeffad9550dd15bdeb6 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 16 Sep 2018 12:54:24 +0300 Subject: rename all things --- crates/ra_syntax/fuzz/fuzz_targets/parser.rs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 crates/ra_syntax/fuzz/fuzz_targets/parser.rs (limited to 'crates/ra_syntax/fuzz/fuzz_targets') diff --git a/crates/ra_syntax/fuzz/fuzz_targets/parser.rs b/crates/ra_syntax/fuzz/fuzz_targets/parser.rs new file mode 100644 index 000000000..396c0ecaf --- /dev/null +++ b/crates/ra_syntax/fuzz/fuzz_targets/parser.rs @@ -0,0 +1,9 @@ +#![no_main] +#[macro_use] extern crate libfuzzer_sys; +extern crate ra_syntax; + +fuzz_target!(|data: &[u8]| { + if let Ok(text) = std::str::from_utf8(data) { + ra_syntax::utils::check_fuzz_invariants(text) + } +}); -- cgit v1.2.3