mirror of
https://github.com/aler9/gortsplib
synced 2025-10-08 08:30:06 +08:00
improve fuzz tests (#592)
This commit is contained in:
@@ -130,7 +130,10 @@ func FuzzAuthorizationUnmarshal(f *testing.F) {
|
||||
|
||||
f.Fuzz(func(_ *testing.T, b string) {
|
||||
var h Authorization
|
||||
h.Unmarshal(base.HeaderValue{b}) //nolint:errcheck
|
||||
err := h.Unmarshal(base.HeaderValue{b})
|
||||
if err == nil {
|
||||
h.Marshal()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user