mirror of
https://github.com/aler9/gortsplib
synced 2025-10-09 00:50:24 +08:00
ensure unmarshaled entities can be marshaled back (#773)
This commit is contained in:
@@ -139,8 +139,10 @@ func FuzzHeaderUnmarshal(f *testing.F) {
|
||||
f.Fuzz(func(_ *testing.T, b []byte) {
|
||||
var h Header
|
||||
err := h.unmarshal(bufio.NewReader(bytes.NewBuffer(b)))
|
||||
if err == nil {
|
||||
h.marshal()
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
h.marshal()
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user