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>
Thu, 26 Oct 2017 15:34:42 +0000 (17:34 +0200)
commitc54317a17e576700e0d936f0bf6b89dba77b4c73
tree4c0d554f07a26992e8cdd36ac58494368f386788
parentab845587d135e64ce09bf360c23c956695db357a
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