mirror of
https://github.com/aler9/gortsplib
synced 2025-10-06 15:46:51 +08:00
ensure unmarshaled entities can be marshaled back (#773)
This commit is contained in:
@@ -27,9 +27,10 @@ func TestDecode(t *testing.T) {
|
||||
}
|
||||
|
||||
func FuzzDecoder(f *testing.F) {
|
||||
f.Fuzz(func(_ *testing.T, a []byte, b []byte) {
|
||||
f.Fuzz(func(t *testing.T, a []byte, b []byte) {
|
||||
d := &Decoder{}
|
||||
d.Init() //nolint:errcheck
|
||||
err := d.Init()
|
||||
require.NoError(t, err)
|
||||
|
||||
d.Decode(&rtp.Packet{ //nolint:errcheck
|
||||
Header: rtp.Header{
|
||||
|
Reference in New Issue
Block a user