avformat/mpegts: use a padded buffer in read_sl_header()
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 4 Oct 2014 03:14:08 +0000 (05:14 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 4 Oct 2014 03:29:32 +0000 (05:29 +0200)
commit5926bea980ad42a7b4a613c7d922468ba128b0e4
treedce69d215582fcd8d6b0d9a086600a06459a8d52
parentcbfd6b1fa4b199824a3e2cb0bd294a70856424b8
avformat/mpegts: use a padded buffer in read_sl_header()

Fixes overread
Fixes: asan_heap-oob_84f75d_8_asan_heap-oob_a2a00a_341_mbc.ts

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

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