mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-14 15:56:44 +03:00
Limit FuzzTestHeaderScanner body size
This commit is contained in:
@@ -151,6 +151,9 @@ func FuzzTestHeaderScanner(f *testing.F) {
|
||||
if !bytes.Contains(data, []byte("\r\n\r\n")) {
|
||||
return
|
||||
}
|
||||
if len(data) > 1024*1024 {
|
||||
return
|
||||
}
|
||||
|
||||
t.Logf("%q", data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user