avcodec/jpeg2000dec: Use av_image_check_size2()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 17 Feb 2018 03:20:53 +0000 (04:20 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 17 Feb 2018 19:31:39 +0000 (20:31 +0100)
commit01370b31aced784593f2bc0836f4ba6fd8e7f6b3
treef15fe95d24d40a0c68af8e295f0c88348e3fb7ee
parentde675648cef7e451ca82fabaee0d8ec1fe653311
avcodec/jpeg2000dec: Use av_image_check_size2()

Fixes: OOM
Fixes: 5733/clusterfuzz-testcase-minimized-4906757966004224

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