avcodec/aacdec_template (fixed point): Check gain in decode_cce() to avoid undefined...
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 15 Jul 2017 20:22:52 +0000 (22:22 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 18 Jul 2017 20:14:16 +0000 (22:14 +0200)
commit2886142e0c3b5f4304c6e2a2bd282770a8a47f93
treed57de004fe05ef190d6011b1b6b7bc6ebb7cd59e
parent79450adfc80bb5d5d94deb1e1dd573b6cebfbe99
avcodec/aacdec_template (fixed point): Check gain in decode_cce() to avoid undefined shifts later

Fixes: runtime error: shift exponent 47 is too large for 32-bit type 'int'
Fixes: 2581/clusterfuzz-testcase-minimized-4681474395602944

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