This commit is contained in:
nora 2021-11-06 20:31:33 +01:00
parent 555aa21cc4
commit 141e8e09bf
7 changed files with 95 additions and 0 deletions

7
fuzz/fuzz_targets/lex.rs Normal file
View file

@ -0,0 +1,7 @@
#![no_main]
use libfuzzer_sys::fuzz_target;
fuzz_target!(|data: String| {
let lexer = script_lang::Lexer::lex(&data);
let _tokens = lexer.collect::<Vec<_>>();
});

View file

@ -0,0 +1,6 @@
#![no_main]
use libfuzzer_sys::fuzz_target;
fuzz_target!(|data: &[u8]| {
// fuzzed code goes here
});