cook: expand dither_tab[], and make sure indexes into it don't overflow.
authorRonald S. Bultje <rsbultje@gmail.com>
Fri, 9 Mar 2012 01:09:27 +0000 (17:09 -0800)
committerReinhard Tartler <siretart@tauware.de>
Tue, 13 Mar 2012 22:40:29 +0000 (23:40 +0100)
commit88c3cc019c8f3ebb9a41ce49c4b7ee6242836849
tree9dd93ac255f67007bbb2a9fa0225f9447b53453d
parent9980e4df3bfcf49da2d3b22ed808b3dca0e7bbf2
cook: expand dither_tab[], and make sure indexes into it don't overflow.

Fixes overflows in accessing dither_tab[].

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
(cherry picked from commit 442c3a8cb1785d74f8e2d7ab35b1862b7088436b)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavcodec/cook.c
libavcodec/cookdata.h