avcodec/diracdec: Tighter checks on CODEBLOCKS_X/Y
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:04 +0000 (15:00 +0100)
commitad98b2891cea0276323ae1769ba6a6128855c316
tree5157e9d2f4e1a1c6854d6e0dcb562700e53bf4a7
parent1ec6a3c768b28296022dd5eee08863a313ff1acb
avcodec/diracdec: Tighter checks on CODEBLOCKS_X/Y

Fixes very long but finite loop
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 5145d22b88b9835db81c4d286b931a78e08ab76a)

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