mpc8: Check the seek table size parsed from the bitstream
authorMartin Storsjö <martin@martin.st>
Wed, 11 Sep 2013 19:47:06 +0000 (22:47 +0300)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 7 Jan 2014 08:43:56 +0000 (09:43 +0100)
commit486c45767587151b517bb6fde602d43d178da203
tree66ce02a61aebe2eb50e50bc917a62b955258e3bc
parentb81d804f2ac113a46d1736751401d78f998db56d
mpc8: Check the seek table size parsed from the bitstream

Limit the size to INT_MAX/2 (for simplicity) to be sure that
size + FF_INPUT_BUFFER_PADDING_SIZE won't overflow.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit 459f2b393a3f89ed08d10fbceb4738d1429f268e)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
(cherry picked from commit f8a72f041c049e812dfa1f32156327e9778f5710)
libavformat/mpc8.c