aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/fuzz/fuzz_targets
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/fuzz/fuzz_targets')
-rw-r--r--crates/ra_syntax/fuzz/fuzz_targets/parser.rs9
1 files changed, 9 insertions, 0 deletions
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 @@
1#![no_main]
2#[macro_use] extern crate libfuzzer_sys;
3extern crate ra_syntax;
4
5fuzz_target!(|data: &[u8]| {
6 if let Ok(text) = std::str::from_utf8(data) {
7 ra_syntax::utils::check_fuzz_invariants(text)
8 }
9});