avcodec/jpeg2000dec: Allocate lengthinc and data_start arrays as needed
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 17 Dec 2017 17:29:45 +0000 (18:29 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 21 Dec 2017 18:48:41 +0000 (19:48 +0100)
commit42274db1c623d2c0acd616cc0d3a0e5489e3bdb2
tree1f6cfebde5da75dc9a70287f159cddbb6ad080ee
parent1083859cb8c9d9b3bcee970dd33b71015a0a11bc
avcodec/jpeg2000dec: Allocate lengthinc and data_start arrays as needed

Decreases memory requirements
Fixes: OOM
Fixes: 4525/clusterfuzz-testcase-minimized-6400713073623040

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
libavcodec/jpeg2000.h
libavcodec/jpeg2000dec.c