avcodec/ac3dec: Check channel_map index
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 27 Jun 2018 13:56:18 +0000 (15:56 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 4 Jul 2018 10:12:22 +0000 (12:12 +0200)
commit00f98d23b1462afb97116b947334db3754516207
tree2eab5865c5dfd9fbf41e4fa8f4fa62fdbe0382f2
parentbd27a9364ca274ca97f1df6d984e88a0700fb235
avcodec/ac3dec: Check channel_map index

Fixes: out of array read
Fixes: 8924/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_EAC3_fuzzer-5851861780267008

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