avcodec/jpeg2000: Check that codsty->log2_prec_widths/heights has been initialized
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 4 Sep 2017 20:23:26 +0000 (22:23 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 4 Oct 2017 23:26:57 +0000 (01:26 +0200)
commit74b28c54d9afa4e1e24a9311b3913194721cb074
tree3dabf979c9193694291ddd70df6c3e2e4828b59f
parent04be199f8ea06202200935bbacec5ebcc832a255
avcodec/jpeg2000: Check that codsty->log2_prec_widths/heights has been initialized

Fixes: OOM
Fixes: 2225/clusterfuzz-testcase-minimized-5505632079708160

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