avcodec/dxtory: fix src size checks
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 16 Feb 2014 20:12:08 +0000 (21:12 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 16 Feb 2014 20:13:02 +0000 (21:13 +0100)
commita392bf657015c9a79a5a13adfbfb15086c1943b9
treee9e8ecca777f0554704a76a585d0c72f34af686b
parent573a8ce8f94f1b614bde6bbdf34f7ef88dabc076
avcodec/dxtory: fix src size checks

Fixes integer overflow
Fixes out of array read
Fixes: d104661bb59b202df7671fb19a00ca6c-asan_heap-oob_d6429d_5066_cov_1729501105_dxtory_mic.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dxtory.c