avcodec/atrac9dec: Check conditions before apply_band_extension() to avoid out of...
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 15 Jun 2019 19:34:18 +0000 (21:34 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 19 Jul 2019 10:59:50 +0000 (12:59 +0200)
commitc5f265bb2468c3e0996329ada11b2792dd9bd1a2
treec866fe8fd55bc53c4943e59ad50ae72178af3f35
parented4c6ce750cf3542f30762334fb1d6696e4d79c6
avcodec/atrac9dec: Check conditions before apply_band_extension() to avoid out of array read in initialization of unused variables

Fixes: global-buffer-overflow
Fixes: 15247/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ATRAC9_fuzzer-5671602181636096

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/atrac9dec.c