mirror of
https://github.com/Noratrieb/dilaria.git
synced 2026-01-14 17:35:03 +01:00
add fuzz
This commit is contained in:
parent
555aa21cc4
commit
141e8e09bf
7 changed files with 95 additions and 0 deletions
7
fuzz/fuzz_targets/lex.rs
Normal file
7
fuzz/fuzz_targets/lex.rs
Normal 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<_>>();
|
||||
});
|
||||
6
fuzz/fuzz_targets/lex_parse.rs
Normal file
6
fuzz/fuzz_targets/lex_parse.rs
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#![no_main]
|
||||
use libfuzzer_sys::fuzz_target;
|
||||
|
||||
fuzz_target!(|data: &[u8]| {
|
||||
// fuzzed code goes here
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue