Repository navigation
Commit 4078510
fix(rtmp): prevent index out of range panic in encodeFLV
The bounds check hint asserted b[15] exists, but the buffer only needs
to hold 15 bytes (4 prev-tag-size + 11 header) when the payload is
empty. Lower the assertion to b[14] so an empty payload no longer
panics. Closes AlexxIT#2061.
Signed-off-by: SAY-5 <say.apm35@gmail.com>1 parent eebfcb0 commit 4078510
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
0 commit comments