1 #![no_main] 2 3 use libfuzzer_sys::fuzz_target; 4 use std::str; 5 6 fuzz_target!(|data: &[u8]| { 7 if data.len() < 300 { 8 if let Ok(string) = str::from_utf8(data) { 9 _ = syn::parse_file(string); 10 } 11 } 12 }); 13