rtmpproto: Validate the embedded flv packet size before copying
authorMartin Storsjö <martin@martin.st>
Thu, 3 Oct 2013 11:49:50 +0000 (13:49 +0200)
committerMartin Storsjö <martin@martin.st>
Fri, 4 Oct 2013 06:25:10 +0000 (09:25 +0300)
commitcd818b3a5709b9b08bd5901cb8863a8b61be265e
tree3d20e6827fecefa301a674b4fe6c8baaa2b390a4
parent8921e32f730c191543b84e61338bc9d549aa05a3
rtmpproto: Validate the embedded flv packet size before copying

This wasn't an issue prior to 58404738, when the whole RTMP packet
was copied at once and the length of the individual embedded flv
packets only were validated by the flv demuxer.

Prior to this patch, this could lead to reads and writes out of bound.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtmpproto.c