mirror of
https://github.com/aler9/gortsplib
synced 2025-10-11 10:00:25 +08:00
improve fuzz tests (#571)
This commit is contained in:
@@ -55,6 +55,9 @@ func TestInterleavedFrameMarshal(t *testing.T) {
|
||||
}
|
||||
|
||||
func FuzzInterleavedFrameUnmarshal(f *testing.F) {
|
||||
for _, ca := range casesInterleavedFrame {
|
||||
f.Add(ca.enc)
|
||||
}
|
||||
f.Fuzz(func(_ *testing.T, b []byte) {
|
||||
var f InterleavedFrame
|
||||
f.Unmarshal(bufio.NewReader(bytes.NewBuffer(b))) //nolint:errcheck
|
||||
|
Reference in New Issue
Block a user