avcodec/diracdec: Use 64bit in calculation of codeblock coordinates
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 28 Oct 2014 00:23:40 +0000 (01:23 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 1 Nov 2014 14:40:38 +0000 (15:40 +0100)
commit6505eb45bcf450473e606d0d233d7480d5071da6
tree340f64cc647200f23a0f056615d250c7b085e726
parent17f0581e0dd587c1f7709eb5a6d52311923ed9ca
avcodec/diracdec: Use 64bit in calculation of codeblock coordinates

Fixes integer overflow
Fixes out of array read
Fixes: asan_heap-oob_107866c_42_041.drc
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 526886e6069636a918c8c04db17e864e3d8151c1)

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