avcodec/diracdec: Check dimensions which are closer to what is allocated in alloc_seq...
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 18 Jul 2017 22:59:21 +0000 (00:59 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 21 Jul 2017 15:37:05 +0000 (17:37 +0200)
commitedc88646ee407bc342cc94ff495aadafcd377cee
tree3695f9ad85a40d44913fa1189eab1b81ce867513
parent1196e53b701369d7f0c886f69f3d8f50f54e7412
avcodec/diracdec: Check dimensions which are closer to what is allocated in alloc_sequence_buffers()

Fixes OOM
Fixes: 2674/clusterfuzz-testcase-minimized-4999700518273024

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/diracdec.c