mirror of
https://github.com/aler9/gortsplib
synced 2025-10-21 22:29:31 +08:00
improve fuzz tests (#592)
This commit is contained in:
@@ -71,7 +71,10 @@ func FuzzSessionUnmarshal(f *testing.F) {
|
||||
|
||||
f.Fuzz(func(_ *testing.T, b string) {
|
||||
var h Session
|
||||
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