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>
Sat, 4 Oct 2014 03:29:31 +0000 (05:29 +0200)
commitcbfd6b1fa4b199824a3e2cb0bd294a70856424b8
tree956eeae101a3f5e9b3715697da8c0c189ed97d87
parentfdc8f4e5b4f12ba5ef2d7645d5ba628f6ddf14c9
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