crftng-intrprtrs/fuzz/fuzz_targets/lexer.rs

9 lines
218 B
Rust
Raw Permalink Normal View History

#![no_main]
use libfuzzer_sys::fuzz_target;
use crftng_intrprtrs::lexer;
fuzz_target!(|input: (&str, Option<&str>)| {
let mut lexer = lexer::Lexer::new(input.0, input.1);
let _ = lexer.scan_tokens().ok();
});