avcodec/ac3dec: Check that the number of channels with dependant streams is valid
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 25 May 2018 20:55:19 +0000 (22:55 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 15 Jun 2018 20:31:13 +0000 (22:31 +0200)
commit7b7c582c15bebe458ebe44fa593271550293dac7
tree53ba2927d2cf5fed73198e4a34bc996ce78fe671
parent06b84f7271a013a32f213f89997317239671bd4d
avcodec/ac3dec: Check that the number of channels with dependant streams is valid

Fixes: left shift of 1 by 63 places cannot be represented in type 'long long'
Fixes: out of array access
Fixes: 7284/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AC3_fuzzer-5767914968842240

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 e3275f937dc38e740c74539f2f6aad5bfdba2bf1)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/ac3dec.c