Commit 74b2b0ed authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'cd818b3a'

* commit 'cd818b3a':
  rtmpproto: Validate the embedded flv packet size before copying
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 5bb3ef3b cd818b3a
......@@ -2218,6 +2218,8 @@ static int handle_metadata(RTMPContext *rt, RTMPPacket *pkt)
pts = cts;
ts += cts - pts;
pts = cts;
if (size + 3 + 4 > pkt->data + pkt->size - next)
break;
bytestream_put_byte(&p, type);
bytestream_put_be24(&p, size);
bytestream_put_be24(&p, ts);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment