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>
Mon, 15 Jan 2018 18:55:22 +0000 (19:55 +0100)
commit6887e412434776eb260ad3904f565be491dd5726
treeffce940d0eba8f5ad334ffa232d268ceae7885ab
parenta1f38c75893c852cf19dcf3e4553549ba1e70950
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>
libavcodec/jpeg2000.c