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>
Tue, 28 Oct 2014 14:00:02 +0000 (15:00 +0100)
commit1ec6a3c768b28296022dd5eee08863a313ff1acb
tree65e4d75451be4bbe0f3548202e859f945e3023e4
parent5c791b1c9ce0edab69d4aa9b17a967a3b3792a07
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