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, 5 Oct 2014 12:22:08 +0000 (14:22 +0200)
commit23fdcd3b0a7578f7d803d9f163ad7ca091b141ea
tree9e14408a72bf44c962d7ceab3355875ee7227056
parent653329dfcb43f8190355be7b8cfdca45eb8c599c
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