mirror of
https://github.com/openlibrecommunity/olcrtc.git
synced 2026-05-27 23:49:44 +00:00
fix(mux): Add frame length validation before data extraction
This commit is contained in:
@@ -119,6 +119,10 @@ func (m *Multiplexer) HandleFrame(frame []byte) {
|
||||
return
|
||||
}
|
||||
|
||||
if len(frame) < 4+int(length) {
|
||||
return
|
||||
}
|
||||
|
||||
data := frame[4 : 4+length]
|
||||
|
||||
m.mu.Lock()
|
||||
|
||||
Reference in New Issue
Block a user