mpegts: Do not try to write a PMT larger than SECTION_SIZE v11_alpha2
authorLuca Barbato <lu_zero@gentoo.org>
Tue, 12 Aug 2014 18:21:12 +0000 (20:21 +0200)
committerDiego Biurrun <diego@biurrun.de>
Wed, 13 Aug 2014 19:43:26 +0000 (12:43 -0700)
commite8049af1325dd59a51546c15b2e71a0f578e9d27
treef3a52fbcd687c25c46364025cbcfabe102becea6
parent353240541d4ec317471b5cbcaa3e027d00ff8f5c
mpegts: Do not try to write a PMT larger than SECTION_SIZE

Prevent out of array writes.

Similar to what Michael Niedermayer did to address the same issue.

Bug-Id: CVE-2014-2263
CC: libav-stable@libav.org
Signed-off-by: Diego Biurrun <diego@biurrun.de>
libavformat/mpegtsenc.c