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>
Mon, 16 Jul 2018 17:02:12 +0000 (19:02 +0200)
commit1361e4abb81f28ac73cc41ae6bf94c045bbb7eee
treeeddd27c0307a95634b374439c72d59982e5d717e
parent5fd1dce39a70340b9fd508154e48985902602e25
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>
(cherry picked from commit 00f98d23b1462afb97116b947334db3754516207)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/ac3dec.c