diff options
-rw-r--r-- | askama_parser/fuzz/fuzz_targets/fuzz_parser.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/askama_parser/fuzz/fuzz_targets/fuzz_parser.rs b/askama_parser/fuzz/fuzz_targets/fuzz_parser.rs index 374936c..1be1f94 100644 --- a/askama_parser/fuzz/fuzz_targets/fuzz_parser.rs +++ b/askama_parser/fuzz/fuzz_targets/fuzz_parser.rs @@ -5,9 +5,7 @@ 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()) {} - } + if let Ok(data) = str::from_utf8(data) { + if let Ok(_) = Ast::from_str(data, &Syntax::default()) {} } }); |