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>
Wed, 19 Jul 2017 02:03:10 +0000 (04:03 +0200)
commit4e7ddba5949ab44798271cd5f82ea878a1826540
tree48ed484f27f4b6b6f568cafbb5036cc0466c0179
parent5e78e477fa6902092774a80c14118b9d98568fc4
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>
(cherry picked from commit 2886142e0c3b5f4304c6e2a2bd282770a8a47f93)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/aacdec_template.c