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>
Sun, 2 Nov 2014 10:14:25 +0000 (11:14 +0100)
commit341cf9ed8167d8319aff8d814a1a1f5f580deaf5
treeaced9787841b24be23ae1f277057772615088516
parentc36f5df34aca867af08313a885cc1131b489c57e
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