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:09 +0000 (04:03 +0200)
commit97e35bc40be7f251857cb873849de4910c04cc20
tree6fd51585b06fafcea20d7792ffcb9e024c50537c
parent13c0467c492306c0ce17ebe4acabcfeb2e20b032
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