avcodec/atrac9dec: Check q_unit_cnt in parse_band_ext()
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 16 Jun 2019 19:01:50 +0000 (21:01 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 29 Jun 2019 18:30:30 +0000 (20:30 +0200)
commit7daa138f6819ef5ec65fd6af52aeb2ebb0ed9486
tree544a4b551d913f614ab30a99de93ae24315adafb
parent3d1903acfee865935b73957e1b4df5ae090c93f9
avcodec/atrac9dec: Check q_unit_cnt in parse_band_ext()

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>
(cherry picked from commit fb4a4557d15bce601e2462207648741600fa273f)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/atrac9dec.c