parser.rs 237 B

123456789101112
  1. #![no_main]
  2. #[macro_use] extern crate libfuzzer_sys;
  3. extern crate ion_shell;
  4. use ion_shell::parser::fuzzing::*;
  5. fuzz_target!(|data: &[u8]| {
  6. if let Ok(s) = std::str::from_utf8(data) {
  7. let _ = statement_parse(&s);
  8. }
  9. });