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 00:25:57 +0000 (01:25 +0100)
commit5145d22b88b9835db81c4d286b931a78e08ab76a
treef78eabd0358e96b189f04802263639bfb7a51053
parent526886e6069636a918c8c04db17e864e3d8151c1
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>
libavcodec/diracdec.c