From 55ca4e35e4c54b519230d1bb342f73aed7f3c24a Mon Sep 17 00:00:00 2001 From: manunio Date: Fri, 12 May 2023 19:51:17 +0530 Subject: [PATCH] fuzz: improve target perf (#864) This attempts to improve issue types like timeout, slow_unit and speed, as seen in the following oss-fuzz performance report: https://oss-fuzz.com/performance-report/libFuzzer_go-toml_fuzz_toml/libfuzzer_asan_go-toml/2023-05-11 --- ossfuzz/fuzz.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ossfuzz/fuzz.go b/ossfuzz/fuzz.go index afe7cc6..34f6d5e 100644 --- a/ossfuzz/fuzz.go +++ b/ossfuzz/fuzz.go @@ -12,7 +12,7 @@ import ( ) func FuzzToml(data []byte) int { - if len(data) >= 10240 { + if len(data) >= 2048 { return 0 }