ensure unmarshaled entities can be marshaled back (#773)

This commit is contained in:
Alessandro Ros
2025-05-04 11:27:28 +02:00
committed by GitHub
parent 3e555e2d18
commit 7f5aac27d1
22 changed files with 89 additions and 50 deletions

View File

@@ -54,8 +54,10 @@ func FuzzBodyUnmarshal(f *testing.F) {
"Content-Length": HeaderValue{a},
},
bufio.NewReader(bytes.NewReader(b)))
if err == nil {
p.marshal()
if err != nil {
return
}
p.marshal()
})
}