From 2ef2b9db9e7dfdb57e6c8b59db5493864aaacf3a Mon Sep 17 00:00:00 2001 From: manunio Date: Mon, 18 Sep 2023 18:38:48 +0530 Subject: fuzz: remove input limit While working on https://github.com/djc/askama/pull/862 fuzz_parser was crashing and failing oss-fuzz build_checks. so a limit of 500 was placed, this pr removes that. --- askama_parser/fuzz/fuzz_targets/fuzz_parser.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'askama_parser/fuzz') 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()) {} } }); -- cgit