avformat/mpegts: Check desc_len / get8() return code
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 4 Oct 2014 02:29:40 +0000 (04:29 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 21 Dec 2014 03:40:34 +0000 (04:40 +0100)
commit5e8b8e4b9d157d8be779e6e3e6d302988c8694d7
treea31561edd65896bb2dc239dd83e7443585043ebf
parent86e57695257fde22da2045b6468ccaef34e848a5
avformat/mpegts: Check desc_len / get8() return code

Fixes out of array read
Fixes: signal_sigsegv_844d59_10_signal_sigsegv_a17bb7_366_mpegts_mpeg2video_mp2_dvbsub_topfield.rec

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit c3d7f00ee3e09801f56f25db8b5961f25e842bd2)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mpegts.c