tests/fuzzers/rlp: avoid very large input (#25109)

The oss-fuzz engine crashes due to stack overflow decoding a large nested
structure into a interface{}. This PR limits the size of the input data, so
should avoid such crashes.
pull/25120/head
Martin Holst Swende 2 years ago committed by GitHub
parent ba99e19215
commit 01e5e9c2c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      tests/fuzzers/rlp/rlp_fuzzer.go

@ -40,6 +40,9 @@ func Fuzz(input []byte) int {
if len(input) == 0 {
return 0
}
if len(input) > 500*1024 {
return 0
}
var i int
{

Loading…
Cancel
Save