avcodec/j2kenc: Fix out of array access in encode_cblk()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 30 Nov 2017 22:42:04 +0000 (23:42 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 1 Dec 2017 23:28:59 +0000 (00:28 +0100)
commit44dc83f0e07a7bcce135ced249d231c3a7b2fd5d
tree2d2e6bd009c4069f113996926b2012750e47cb0a
parenta65633aa9d2291244d039abeda2864492ca810c6
avcodec/j2kenc: Fix out of array access in encode_cblk()

Fixes: 4427/clusterfuzz-testcase-minimized-5106919271301120

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 0674087004538599797688785f6ac82358abc23b)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/j2kenc.c