diff --git a/projects/burntsushi-toml/fuzz.go b/projects/burntsushi-toml/fuzz.go index bc721c65a..f1afaf8bd 100644 --- a/projects/burntsushi-toml/fuzz.go +++ b/projects/burntsushi-toml/fuzz.go @@ -3,6 +3,11 @@ package toml import "bytes" func FuzzToml(data []byte) int { + + if len(data) >= 10240 { + return 0 + } + buf := make([]byte, 0, 2048) var m interface{}