mirror of
https://github.com/bluenviron/mediamtx
synced 2025-02-07 15:12:32 +00:00
rtmp: return error in case of extended chunk stream IDs (#2806)
This commit is contained in:
parent
1b71d6975a
commit
22414bb38c
@ -293,6 +293,10 @@ func (r *Reader) Read() (*Message, error) {
|
||||
typ := byt >> 6
|
||||
chunkStreamID := byt & 0x3F
|
||||
|
||||
if chunkStreamID < 2 {
|
||||
return nil, fmt.Errorf("extended chunk stream IDs are not supported (yet)")
|
||||
}
|
||||
|
||||
rc, ok := r.chunkStreams[chunkStreamID]
|
||||
if !ok {
|
||||
rc = &readerChunkStream{mr: r}
|
||||
|
@ -1,2 +0,0 @@
|
||||
go test fuzz v1
|
||||
[]byte("\xe6")
|
@ -1,2 +0,0 @@
|
||||
go test fuzz v1
|
||||
[]byte("0000\xf4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
|
@ -1,2 +0,0 @@
|
||||
go test fuzz v1
|
||||
[]byte("0000\x00\x00000000000000000000000000000000000000000000000000000000\xb0")
|
@ -1,2 +0,0 @@
|
||||
go test fuzz v1
|
||||
[]byte("0")
|
@ -1,2 +0,0 @@
|
||||
go test fuzz v1
|
||||
[]byte("\x00000\x00\x00\x04000000000\x800000000\xc0")
|
@ -1,2 +0,0 @@
|
||||
go test fuzz v1
|
||||
[]byte("00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\xf0")
|
@ -1,2 +0,0 @@
|
||||
go test fuzz v1
|
||||
[]byte("000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
|
@ -1,2 +0,0 @@
|
||||
go test fuzz v1
|
||||
[]byte("00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000p")
|
@ -1,2 +0,0 @@
|
||||
go test fuzz v1
|
||||
[]byte("00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\xb0")
|
@ -1,2 +0,0 @@
|
||||
go test fuzz v1
|
||||
[]byte("\x80")
|
Loading…
Reference in New Issue
Block a user