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>
Thu, 12 Apr 2018 22:35:15 +0000 (00:35 +0200)
commit1a4f8de03d57490b6344ec2eeba3aa816cd1eb62
tree9d1de71536d0795724713e61af7a1874114ab95c
parent2a85ead5a374f37bc52d716da9237f4e722dee58
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>
(cherry picked from commit 01370b31aced784593f2bc0836f4ba6fd8e7f6b3)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/jpeg2000dec.c