mirror of
https://github.com/askama-rs/askama.git
synced 2025-10-02 15:25:19 +00:00
14 lines
304 B
Rust
14 lines
304 B
Rust
#![no_main]
|
|
use askama_parser::*;
|
|
use libfuzzer_sys::fuzz_target;
|
|
use std::str;
|
|
|
|
fuzz_target!(|data: &[u8]| {
|
|
// fuzzed code goes here
|
|
if data.len() < 500 {
|
|
if let Ok(data) = str::from_utf8(data) {
|
|
if let Ok(_) = Ast::from_str(data, &Syntax::default()) {}
|
|
}
|
|
}
|
|
});
|