avcodec/jpeg2000: Check sum of sizes of band->prec before allocating
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 13 Jan 2018 23:39:40 +0000 (00:39 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 12 Apr 2018 22:35:15 +0000 (00:35 +0200)
commit488a6ae7e5e8ffbcddcdda62174b898bbe6a8b4d
treeb9b64da430e8db3d5d61330a33517ee02fc68396
parenteecb0ecf51ed9f270832a66c85949d5731e626af
avcodec/jpeg2000: Check sum of sizes of band->prec before allocating

Fixes: OOM
Fixes: 4810/clusterfuzz-testcase-minimized-6034253235093504

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 6887e412434776eb260ad3904f565be491dd5726)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/jpeg2000.c