mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 23:26:54 +08:00
ensure unmarshaled entities can be marshaled back (#773)
This commit is contained in:
@@ -132,9 +132,11 @@ func FuzzAuthorizationUnmarshal(f *testing.F) {
|
||||
f.Fuzz(func(_ *testing.T, b string) {
|
||||
var h Authorization
|
||||
err := h.Unmarshal(base.HeaderValue{b})
|
||||
if err == nil {
|
||||
h.Marshal()
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
h.Marshal()
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user